<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Expressing IT &#187; Browser Quirks</title>
	<atom:link href="http://developer.expressionz.in/blogs/tag/browser-quirks/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.expressionz.in/blogs</link>
	<description>User Interface : just another, but a serious developers weblog</description>
	<lastBuildDate>Thu, 20 May 2010 18:05:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>User Agent Style Sheets : Mystery Margins in Google Chrome</title>
		<link>http://developer.expressionz.in/blogs/2009/07/27/user-agent-style-sheets-mystry-margins-in-google-chrome/</link>
		<comments>http://developer.expressionz.in/blogs/2009/07/27/user-agent-style-sheets-mystry-margins-in-google-chrome/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 05:01:22 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[User Interface Desgin]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[Browser Quirks]]></category>
		<category><![CDATA[Chrome Fixes]]></category>
		<category><![CDATA[CSS Resets]]></category>
		<category><![CDATA[Google Chrome]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=146</guid>
		<description><![CDATA[Extra margins seen only in Google Chrome : caused by the user agent stylesheet (-webkit-padding-start:40px)]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2009%2F07%2F27%2Fuser-agent-style-sheets-mystry-margins-in-google-chrome%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2009%2F07%2F27%2Fuser-agent-style-sheets-mystry-margins-in-google-chrome%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=Browser+Quirks,Chrome+Fixes,CSS+Resets,Google+Chrome" height="61" width="50" /><br />
			</a>
		</div>
<p>Yesterday,  like every other &#8220;Ground Hog  Day&#8221; ,  I was working on some CSS/tableless  layouts. All was going well in IE 7, FF 3 and Chrome, untill suddenly,   I saw some un-ignorable margins seen only in Google Chrome.   Though very strange and worring, It  was some new bug/issue that I had come accross, there was  finally some spice in my mundane work . Sad (but nice) it got fixed within a few minutes of the probe&#8230;</p>
<p>Basically ,  It looked like  Google Chrome ignored my CSS Resets  ( margin:0px).  It actually was  caused by the user agent stylesheet<strong><em> (-webkit-padding-start:40px)</em></strong>.  So the solution was to reset this style by setting padding:0 the misbehaving elements .<br />
A  good way to prevent this problem from happening to any element is use a global CSS Rest as follows</p>
<p><strong><em>*{ margin:0; padding:0; }</em></strong></p>
<p><strong>What is User Agent Style Sheets (Specification) ?</strong><br />
<em> The following  excerpt is taken  from </em><a href="http://meiert.com/en/blog/20070922/user-agent-style-sheets/"><em>http://meiert.com/en/blog/20070922/user-agent-style-sheets/</em></a><em> , follow link to read more on User Agent Style Sheets</em></p>
<p>CSS 1 introduces the idea by stating that each User Agent (UA, often a ‘web browser’ or ‘web client’) will have a default style sheet that presents documents in a reasonable – but arguably mundane – manner. CSS 2 says that conforming user agents must apply a default style sheet (or behave as if they did) and that a user agent’s default style sheet should present the elements of the document language in ways that satisfy general presentation expectations for the document language; CSS 3 is likely to be of the same mind.</p>
<p>Since the CSS specifications leave it up to implementations whether to use a “real” style sheet for default display or not, it’s not astonishing that you don’t find a default style sheet in every browser’s installation folder. Unlike Microsoft’s Internet Explorer as well as Opera, for example (and as far as I know), Gecko browsers like Firefox and Netscape Navigator (look for “html.css”) but also Konqueror make it rather simple to comprehend their default styling.</p>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2009/07/27/user-agent-style-sheets-mystry-margins-in-google-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting the DOCTYPE in XSL</title>
		<link>http://developer.expressionz.in/blogs/2008/08/02/setting-the-doctype-in-xsl/</link>
		<comments>http://developer.expressionz.in/blogs/2008/08/02/setting-the-doctype-in-xsl/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 05:28:33 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[XSL]]></category>
		<category><![CDATA[Browser Quirks]]></category>
		<category><![CDATA[Doctype]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=14</guid>
		<description><![CDATA[The PROBLEM :
You want control over the DOCTYPE, since your transformation will include a default DOCTYPE explicitly, and you layout will be out for a toss.

The Solution:
XSLT specs provides output methods to set a the DOCTYPE of choise. Also, for us UI developers, the topics of interest would be HTML output methods and XML output methods.
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2008%2F08%2F02%2Fsetting-the-doctype-in-xsl%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2008%2F08%2F02%2Fsetting-the-doctype-in-xsl%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=Browser+Quirks,Doctype,XML,XSL" height="61" width="50" /><br />
			</a>
		</div>
<p>Last week I created a progessive HTML/CSS layout for a client, tested it in IE6, IE7 and FF 3, seemed perfectly fine&#8230; UNTIL! the layout went further down the manufacting cycle. It failed. Page layout elements just went all over the place when the HTML layout was converted into  XSL and  XML applied to it &#8230; Bummer!!!</p>
<p>Could not sleep ok over the weekend, in anticipation of Monday morning, when I&#8217;ll have to fix this SH**. But now having a little experince in dealing with these kind of situations ( Browser Quirks, I mean), I knew it had to do with nothing else but DOCTYPE&#8230;. and It WAS&#8230;</p>
<p><strong>The Problem:</strong><br />
You want control over the DOCTYPE, since your transformation will include a default DOCTYPE explicitly, and you layout will be out for a toss.</p>
<p><strong>The Solution:</strong><br />
<a title="XSL Specs" href="http://www.w3.org/TR/xslt" target="_blank">XSLT specs</a> provides output methods to set a the DOCTYPE of choise. Also, for us UI developers, the topics of interest would be <a title="XSl Specs : HTMl Output" href="http://www.w3.org/TR/xslt#section-HTML-Output-Method" target="_blank">HTML output methods </a>and <a title="XSl Specs : XSl Output" href="http://www.w3.org/TR/xslt#section-XML-Output-Method" target="_blank">XML output methods</a>.</p>
<p>Well! before you get bored , here is the fix.</p>
<p>For eg., if you had the following DOCTYPE in your HTML version :-</p>
<blockquote><p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;</code></p></blockquote>
<p>Then in the XSL you would have to have the following :-</p>
<blockquote><p><code>&lt;xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/loose.dtd" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" indent="yes" /&gt;<br />
</code></p></blockquote>
<p>and Finally! do make sure your XSLT output obeys the DOCTYPE  you have chosen.</p>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2008/08/02/setting-the-doctype-in-xsl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
