<?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>jeremyjarratt.com &#187; safari</title>
	<atom:link href="http://jeremyjarratt.com/tag/safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeremyjarratt.com</link>
	<description>x jeremy jarratt is a blogger, musician, artist, poet, web developer/designer, armchair philosophizer, teller of tales, and roustabout. Also, something he calls a &#34;behavioral artist.&#34; (Not sure.) This is his latest home on teh internets - where he stores his swear words, when he&#039;s not hurling them at the sun in vain.</description>
	<lastBuildDate>Mon, 26 Jul 2010 14:51:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Google Chrome obeys alternate CSS</title>
		<link>http://jeremyjarratt.com/2008/09/google-chrome-obeys-alternate-css/</link>
		<comments>http://jeremyjarratt.com/2008/09/google-chrome-obeys-alternate-css/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 05:13:24 +0000</pubDate>
		<dc:creator>jeremy</dc:creator>
				<category><![CDATA[internets]]></category>
		<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[Webkit]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://jeremyjarratt.com/?p=474</guid>
		<description><![CDATA[So Google Chrome is out. That&#8217;s great! It&#8217;s really a cool, fast, secure browser. Unfortunately, it appears to break sites in one very important way: it obeys alternate stylesheets, just as if they were normal, active stylesheets. This breaks sites &#8230; <a href="http://jeremyjarratt.com/2008/09/google-chrome-obeys-alternate-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So <a href="http://www.google.com/chrome/" class="liexternal">Google Chrome</a> is out. That&#8217;s great! It&#8217;s really a cool, fast, secure browser.</p>
<p>Unfortunately, it appears to break sites in one very important way: it obeys alternate stylesheets, just as if they were normal, active stylesheets. This breaks sites who print their alternate <acronym title="Cascading Style Sheets">CSS</acronym> links <em>after</em> active ones (like mine &#8211; for now).</p>
<p>I&#8217;ve sent this in as a bug to Google, and i&#8217;d recommend that others do the same (select &#8220;report bug or broken website&#8221; from the page icon to the upper right).</p>
<p>At the moment, the only thing to do is to list alternate stylesheets <em>before</em> active ones, or <em>exclude alternate links altogether</em>.</p>
<p>However, there are (naturally!) problems with each method&#8230;</p>
<p>Listing alternate <acronym title="Cascading Style Sheets">CSS</acronym> (which would still be obeyed) could still cause style conflicts, if there are any rules which are not contradicted (read: overwritten) by later stylesheets below the alternate ones.</p>
<p>On the other hand, <em>not</em> listing alternate stylesheets disables additional functionality in user agents such as <a href="http://opera.com/" class="liexternal">Opera</a>, which allows users to select from a menu what style they&#8217;d prefer to view a site in &#8211; which is arguably the best, most accessible method of switching stylesheets (if you&#8217;re using one of those user agents, that is).</p>
<p>For my money, i believe the former is the best option. This means i may have to do some code &#8220;cleaning,&#8221; which i should have done anyway. In fact, rather than <em>removing</em> extraneous <acronym title="Cascading Style Sheets">CSS</acronym> rules, i&#8217;ll be <em>adding</em> rules which do not exist in, say, X.css to Y.css, in order to counteract any style collisions by overwriting them with alternate rules.</p>
<p>Btw, for those who need it, here&#8217;s the User Agent string i captured:</p>
<p style="padding-left: 30px;"><span class="Apple-style-span" style="border-collapse: separate; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: #ffffff; font-family: 'times new roman'; color: #000000;">Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13</span></p>
<p>[UPDATE] <a href="http://mattwilcox.net/" class="liexternal">Matt Wilcox</a> helpfully pointed out that this isn&#8217;t exactly a Chrome bug, but a leftover <a href="http://www.apple.com/safari/" class="liexternal">Safari</a> one which has apparently been around for years, according to <a href="http://www.google.com/searchq=safari+&quot;alternate+stylesheet&quot;+bug" class="liexternal">a decently shrewd Google search</a>. Lesson: test in Safari, even if you think it&#8217;s a Practically Perfect Browser.</p>
<p>I have fixed it locally but am waiting for at least a few more hours in order to use this site as an example. Hey, it beats making a quick mock-up. Sort of. (My teachers always thought i was most useful as an example to warn others &#8211; well, i do what i can!)</p>
<p>And a big thanks to the great Jeffrey Zeldman for helping <a href="http://www.zeldman.com/2008/09/03/a-bug-in-google-chrome/" class="liexternal">get the word out</a> to designers about this. Of course, 99% of people making web sites won&#8217;t be affected, but for those of us using alternate styling, it&#8217;s a nasty thing to have happen.</p>
<p>[UPDATE 2] To clarify, Safari and Chrome both use the <a href="http://webkit.org/" class="liexternal">Webkit</a> rendering engine, as well as parts of the Mozilla FIrefox codebase. Not to point fingers or anything. I&#8217;m just sayin&#8217; is all.</p>
<p>[UPDATE 3] I couldn&#8217;t take it anymore. I fixed things here so there shouldn&#8217;t be any issues. I use a browser sniffer to detect the user agent and deliver either modern <acronym title="Cascading Style Sheets">CSS</acronym> or a crappy facsimile thereof for older, less standards-compliant user agents. As long as i keep up to date, no problem&#8230; of course, the drawback is obvious. I must keep up to date. Anyway, i&#8217;ve completely eliminated the alternate styles for both Chrome &amp; Safari, at least until this bug is fixed in the Webkit renderer. In the meantime, i&#8217;ll put together a tester page and link it here.</p>



share and enjoy:


	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS&amp;bodytext=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites" title="Digg"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS&amp;notes=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites" title="del.icio.us"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=Google%20Chrome%20obeys%20alternate%20CSS%20-%20http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="Twitter"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;t=Google%20Chrome%20obeys%20alternate%20CSS" title="MySpace"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://technorati.com/faves?add=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="Technorati"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS" title="StumbleUpon"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://cgi.fark.com/cgi/fark/farkit.pl?h=Google%20Chrome%20obeys%20alternate%20CSS&amp;u=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="Fark"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="co.mments"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/" title="co.mments" alt="co.mments" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://reddit.com/submit?url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS" title="Reddit"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;t=Google%20Chrome%20obeys%20alternate%20CSS" title="Facebook"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS" title="Live"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS&amp;annotation=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites" title="Google Bookmarks"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="" title="Pownce"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/" title="Pownce" alt="Pownce" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://slashdot.org/bookmark.pl?title=Google%20Chrome%20obeys%20alternate%20CSS&amp;url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="Slashdot"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.friendfeed.com/share?title=Google%20Chrome%20obeys%20alternate%20CSS&amp;link=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="FriendFeed"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://current.com/clipper.htm?url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS" title="Current"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/current.png" title="Current" alt="Current" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.netvibes.com/share?title=Google%20Chrome%20obeys%20alternate%20CSS&amp;url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="Netvibes"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS&amp;source=jeremyjarratt.com+x+jeremy+jarratt+is+a+blogger%2C+musician%2C+artist%2C+poet%2C+web+developer%2Fdesigner%2C+armchair+philosophizer%2C+teller+of+tales%2C+and+roustabout.+Also%2C+something+he+calls+a+%26quot%3Bbehavioral+artist.%26quot%3B+%28Not+sure.%29+This+is+his+latest+home+on+teh+internets+-+where+he+stores+his+swear+words%2C+when+he%26%23039%3Bs+not+hurling+them+at+the+sun+in+vain.&amp;summary=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites" title="LinkedIn"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;title=Google%20Chrome%20obeys%20alternate%20CSS&amp;body=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites" title="Ping.fm"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;h=Google%20Chrome%20obeys%20alternate%20CSS" title="NewsVine"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://bookmarks.yahoo.com/toolbar/savebm?u=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;t=Google%20Chrome%20obeys%20alternate%20CSS&opener=bm&amp;ei=UTF-8&amp;d=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites" title="Yahoo! Bookmarks"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/yahoomyweb.png" title="Yahoo! Bookmarks" alt="Yahoo! Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;submitHeadline=Google%20Chrome%20obeys%20alternate%20CSS&amp;submitSummary=So%20Google%20Chrome%20is%20out.%20That%27s%20great%21%20It%27s%20really%20a%20cool%2C%20fast%2C%20secure%20browser.%0D%0A%0D%0AUnfortunately%2C%20it%20appears%20to%20break%20sites%20in%20one%20very%20important%20way%3A%20it%20obeys%20alternate%20stylesheets%2C%20just%20as%20if%20they%20were%20normal%2C%20active%20stylesheets.%20This%20breaks%20sites&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=Google%20Chrome%20obeys%20alternate%20CSS&amp;body=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F" title="email"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;partner=sociable" title="PDF"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fjeremyjarratt.com%2F2008%2F09%2Fgoogle-chrome-obeys-alternate-css%2F&amp;partner=sociable" title="Print"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://jeremyjarratt.com/feed/" title="RSS"><img src="http://jeremyjarratt.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>


<br/><br/><img src="http://jeremyjarratt.com/?ak_action=api_record_view&id=474&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://jeremyjarratt.com/2008/09/google-chrome-obeys-alternate-css/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>
