<?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>James Hopkins &#187; CSS</title>
	<atom:link href="http://jhop.me/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://jhop.me</link>
	<description></description>
	<lastBuildDate>Wed, 28 Apr 2010 22:49:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The IE8 proprietary property (and vendor extension) lowdown</title>
		<link>http://jhop.me/browsers/ie8/the-ie8-proprietary-property-and-vendor-extension-lowdown</link>
		<comments>http://jhop.me/browsers/ie8/the-ie8-proprietary-property-and-vendor-extension-lowdown#comments</comments>
		<pubDate>Sun, 12 Oct 2008 19:27:18 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[IE8]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/browsers/ie8-browsers/the-ie8-proprietary-property-and-vendor-extension-lowdown</guid>
		<description><![CDATA[Whilst there was me thinking the IE team were going to be sticking rigidly to 2.1 compliance and nothing else, it was announced on the IE Blog that a number of proprietary and level 3 properties are going to be implemented yet again on an experimental basis (using the -ms- prefix).
Most of the level 3 [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst there was me thinking the IE team were going to be sticking rigidly to 2.1 compliance and nothing else, it was <a href="http://blogs.msdn.com/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx">announced</a> on the IE Blog that a number of proprietary and level 3 properties are going to be implemented yet again on an experimental basis (using the <code>-ms-</code> prefix).</p>
<p>Most of the level 3 properties deal specifically with text layout (<code>layout-grid</code>, <code>line-grid</code>, <code>line-break</code>, <code>word-wrap</code>), but they&#8217;ve also prefixed some non text layout-specific properties including <code>background-position-x</code> &amp; <code>background-position-y</code> and <code>overflow-x</code> &amp; <code>overflow-y</code>.</p>
<p>One thing I was surprised to see was the amount of proprietary properties that they are continuing to support; in case you&#8217;re not already familiar with the functionality of these properties, I&#8217;d thought I&#8217;d come up with a brief intro for each of the most interesting properties (<a href="http://blogs.msdn.com/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx">full property list</a>):-</p>
<ul>
<li> <strong>-ms-interpolation-mode</strong> &#8211; Introduced in IE7, this property deals with smooth image scaling; this gives the author the ability to de-scale large images using CSS, without losing definition. The two keyword values that can be used are <code>nearest-neighbor</code> (using nearest neighbor interpolation mode) and <code>bicubic</code> (using high-quality bicubic interpolation mode). <a href="http://msdn.microsoft.com/en-us/library/ms530822(VS.85).aspx">MSDN page</a></li>
<li><strong>-ms-filter</strong> &#8211; Probably the most used property on the list as it is currently the only way to emulate opacity in versions of IE. NOTE: MS have recognised that the former syntax used to emulate opacity was illegal, so they have no re-written the value.</li>
<li><strong>-ms-accelerator</strong> &#8211; As far as I&#8217;m aware, this is a brand new extension for IE8 and there is currently no specification from MS on it&#8217;s function.</li>
<li><strong>-ms-behaviour</strong> &#8211; This property allows a script to be attached to the element to which it is applied; the script that is specified in the property is saved as an HTC file (HTML Component). I&#8217;d hazard a guess that the most common purpose of this property is getting semi-transparency in PNGs working in IE5+. <a href="http://msdn2.microsoft.com/en-us/library/ms531078.aspx">MSDN page</a></li>
<li><strong>-ms-scrollbar-*</strong> &#8211; This set of properties has been with us since IE5 and the property name is pretty self-explanitory; they&#8217;re used to control the colour of the browser window scrollbars.</li>
<li><strong>-ms-text-underline-position</strong> &#8211; Supported since IE6, this property sets the position of the underline that is set through the <code>text-decoration</code> property.</li>
<li><strong>-ms-zoom</strong> &#8211; sets the maginfication scale of an element.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/browsers/ie8/the-ie8-proprietary-property-and-vendor-extension-lowdown/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing all those pesky style element declarations in Drupal (to accommodate IE6)</title>
		<link>http://jhop.me/css/removing-all-those-pesky-style-element-declarations-in-drupal-to-accommodate-ie6</link>
		<comments>http://jhop.me/css/removing-all-those-pesky-style-element-declarations-in-drupal-to-accommodate-ie6#comments</comments>
		<pubDate>Sat, 11 Oct 2008 00:28:36 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/css/removing-all-those-pesky-style-element-declarations-in-drupal-to-accommodate-ie6</guid>
		<description><![CDATA[Some of you may already be aware that IE6 has a limitation of reading only up to 30 external stylesheet declarations (when using either the style element, link element or @import rule). This figure may seem ridiculously high, and you might be thinking that an author with that many individual declarations doesn&#8217;t have a clue [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you may already be aware that IE6 has a <a href="http://support.microsoft.com/kb/262161">limitation of reading only up to 30 external stylesheet declarations</a> (when using either the <code>style</code> element, <code>link</code> element or <code>@import</code> rule). This figure may seem ridiculously high, and you might be thinking that an author with that many individual declarations doesn&#8217;t have a clue about organization, but this is what out-of-the-box Drupal serves you (<a href="http://drupal.org/node/228818">Drupal.org related post</a>).If you&#8217;re working on a fairly large Drupal site which employs a number of different modules, then you may well experience this problem. The issue is that many Drupal modules that have any kind of theming side of them include their own (sometimes very hacky) stylesheets; so when one of these modules is installed, Drupal adds a link to this stylesheet by means of a <code>style</code> element declaration &#8211; yes thats right, one for every module.</p>
<p>I&#8217;m currently working on a large-scale Drupal site which includes a large number of modules, each with their own styleshee. As already mentioned, IE6 (and below) ignore any stylesheet declarations (using <code>style</code> or <code>link</code> elements) after 30 instances. Add to this the numberous non-module stylesheets (Drupal core &amp; IE-specific) and you&#8217;re well on your to reaching IE6s limit.</p>
<p>So, what are the solutions?</p>
<h3>Aggregate &amp; Compress CSS within Drupal</h3>
<p>Drupal recognises the issue of an additional HTTP request required for each module stylesheet. Fortunately this feature gets around the IE6 issue by aggregating all module and core stylesheets into one instance for each stylesheet media type defined. You can access this feature by logging in as an Admin and going to <code>Site Configuration</code> &gt; <code>Performance</code></p>
<p>However this method caches CSS too, which means it&#8217;s far from ideal whilst theming development is taking place.</p>
<h3>Unsetting stylesheets within template.php and using @import</h3>
<p>You can disable any module stylesheets from being included by unsetting them from within <code>template.php</code>. First get the stylesheet array by using <code>$css = drupal_add_css()</code> and then go ahead and unset all stylesheets (which will then all be linked to from within just one). Your snippet will look something like this:-</p>
<p><code># get array of stylesheets<br />
$css = drupal_add_css();<br />
unset($css['all']['module']['modules/system/system.css']);<br />
unset($css['all']['module']['modules/system/defaults.css']);<br />
unset($css['print']['theme']['themes/mytheme/print.css']);<br />
</code><br />
Now you would go ahead and use the <code>@import</code> rule to import your stylesheets through one of your theme-level stylesheets. The issue however, still exists that if you have more than 30 being imported within a single document, stylesheets that are &lt;30 will be ignored. To only workaround is to create a new stylesheet in this case, specifically for importing the remaining stylesheets.</p>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/css/removing-all-those-pesky-style-element-declarations-in-drupal-to-accommodate-ie6/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE8 Beta 2 delivers minimal CSS support enhancements (and loses support for at least one selector)</title>
		<link>http://jhop.me/css/ie8-beta-2-delivers-minimal-css-support-enhancements-and-loses-support-for-at-least-one-selector</link>
		<comments>http://jhop.me/css/ie8-beta-2-delivers-minimal-css-support-enhancements-and-loses-support-for-at-least-one-selector#comments</comments>
		<pubDate>Thu, 28 Aug 2008 00:09:31 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE8]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/general-stuff/ie8-beta-2-delivers-minimal-css-support-enhancements-and-loses-support-for-at-least-one-selector</guid>
		<description><![CDATA[OK, maybe a bit of a haphazard title for a post (but it is very late in the day, and I really should be getting to bed) . Anyway, the anticipated release of Beta 2 was sometime this month (August) and it was finally released yesterday.
It was always a given that Beta 2 was going [...]]]></description>
			<content:encoded><![CDATA[<p>OK, maybe a bit of a haphazard title for a post (but it is very late in the day, and I really should be getting to bed) . Anyway, the anticipated release of Beta 2 was sometime this month (August) and it was finally released yesterday.</p>
<p>It was always a given that Beta 2 was going to be focused on delivering an enhanced and more seemless user experience, rather than concentrating on &#8216;under the bonnet&#8217; enhancements like Beta 1 <strong>tried</strong> to deliver. However, on the surface of things, they appear to be very similar; one feature that I immediately noticed had gone (at least from the top toolbar) was the <a href="http://idreamincode.co.uk/browsers/ie8-browsers/emulating-ie7-in-ie8-my-thoughts">&#8216;Emulate IE7&#8242; button</a>- to me, this wasn&#8217;t much of a suprise as I simply could never see a practical use of that feature for end-users.</p>
<p>To coincide with this latest release, the IE team have also released a <a href="http://msdn.microsoft.com/en-gb/library/cc304082(VS.85).aspx">whitepaper detailing CSS improvments in Beta 2</a>. For me, arguably the most major enhancement is support of the <code>box-sizing</code> property without the need for the <code>-ms-</code> prefix.</p>
<p>Beta 2 also supports the shorthand syntax for the <code>filter</code> property which can be used to emulate opacity &#8211; this must mean that IE8 don&#8217;t intend to implement the Level 3 <code>opacity</code> property.</p>
<p>Although I haven&#8217;t played around with Beta 2 for long, I have had time to put it through it&#8217;s paces on <a href="http://www.css3.info/selectors-test/">CSS3.Info&#8217;s Selector Test Suite</a>; expecting a much better score than Beta 1s measley 14 out of 43, Beta 2 surprisingly only supports 13 selectors out of the 43.</p>
<p>This is only a quick write-up so will write a more concise post when I have some more time. Right, off to bed.</p>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/css/ie8-beta-2-delivers-minimal-css-support-enhancements-and-loses-support-for-at-least-one-selector/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Confirmed &#8211; IE8 will NOT support the Opacity property</title>
		<link>http://jhop.me/browsers/ie8/confirmed-ie8-will-not-support-the-opacity-property</link>
		<comments>http://jhop.me/browsers/ie8/confirmed-ie8-will-not-support-the-opacity-property#comments</comments>
		<pubDate>Tue, 19 Aug 2008 22:12:38 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[IE8]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Opacity]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/browsers/ie8-browsers/confirmed-ie8-will-not-support-the-opacity-property</guid>
		<description><![CDATA[I&#8217;ve been watching the status on the Connect ticket almost daily as this is probably one of the most popular tickets in the whole system, I imagine (along with this one, this one, and this one.
The call for supporting the Opacity property in IE8 stems from the team removing the proprietary &#8216;Layout&#8217; concept, which renders [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been watching the status on <a href="https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=331735">the Connect ticket</a> almost daily as this is probably one of the most popular tickets in the whole system, I imagine (along with <a href="https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=361179">this one</a>, <a href="https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=360691">this one</a>, and <a href="https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=361018">this one</a>.</p>
<p>The call for supporting the Opacity property in IE8 stems from the team removing the proprietary &#8216;Layout&#8217; concept, which renders the <code>filter</code> property useless (as <a href="http://msdn.microsoft.com/en-us/library/ms532847.aspx">this document explains</a>), although there had previously been <a href="http://www.css3.info/css3-features-in-ie8/#comment-117994">some talk</a> of the longhand value working &#8211; this means there is currently <strong>no</strong> way to emulate opacity in IE8 (the first browser for 10 or so years that doesn&#8217;t support a way of emulating this)!!!</p>
<p>A few days ago now, the status on the bug ticket changed &#8211; it&#8217;d remained closed ever since I was given access to Connect, but its status had changed from &#8216;By Design&#8217; to &#8216;Postponed&#8217;. Until I got my first copy of the IE8 Beta News pdf through, I had been trying to hunt down exact definitions of these statuses, but to no avail; however now, I have them (word for word):-</p>
<dl>
<dt>&#8216;Won&#8217;t fix&#8217; &#8211; </dt>
<dd>generally means we know that we will not be addressing the reported issue, ususally becuase it risks breaking the code in other, more serious ways or because the effort to fix the issue is not justified for the improvement.</dd>
<dt>&#8216;By Design&#8217; &#8211; </dt>
<dd>generally means the feedback you provided is, at this time, expected behaviour for Internet Exlorer</dd>
<dt>&#8216;Postponed&#8217; &#8211; </dt>
<dd>means unfortunately we will not be fixing this in IE8, but we will considering it for the next release of IE</dd>
</dl>
<p><span style="text-decoration: line-through;">Our only hope now is that it includes support for the <code>filter</code> property (that we all know and love), by re-engineering the property application itself.</span> UPDATE:- They&#8217;ve <a href="http://blogs.msdn.com/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx">announced</a> that IE8 will be able to emulate Opacity using the <code>filter</code> property but only by prepending the property with the <code>-ms-</code> prefix.</p>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/browsers/ie8/confirmed-ie8-will-not-support-the-opacity-property/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Another bug bites the dust&#8230;</title>
		<link>http://jhop.me/general-stuff/another-bug-bites-the-dust</link>
		<comments>http://jhop.me/general-stuff/another-bug-bites-the-dust#comments</comments>
		<pubDate>Sat, 09 Aug 2008 10:48:52 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[General stuff]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE8]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/general-stuff/another-bug-bites-the-dust</guid>
		<description><![CDATA[Found another a couple of days ago which was first highlighted to me in this ticket
Essentially IE8s implementation of the :hover pseudo class is buggy and whether it exhibits the expected behaviour is dependant as to what nesting level the element appears at.
Full bug description and test cases
]]></description>
			<content:encoded><![CDATA[<p>Found another a couple of days ago which was first highlighted to me in <a href="https://connect.microsoft.com/IE/feedback/ViewFeedback.aspx?FeedbackID=360691">this ticket</a></p>
<p>Essentially IE8s implementation of the :hover pseudo class is buggy and whether it exhibits the expected behaviour is dependant as to what nesting level the element appears at.</p>
<p><strong><a href="http://idreamincode.co.uk/wp-content/uploads/2008/IE8Bugs/hoverchildren/intro.html">Full bug description and test cases</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/general-stuff/another-bug-bites-the-dust/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebooks iPhone-specific UI &#8211; unconventional but is it unnecessary?</title>
		<link>http://jhop.me/general-stuff/facebooks-iphone-specific-ui-unconventianal-but-is-it-unnecessary</link>
		<comments>http://jhop.me/general-stuff/facebooks-iphone-specific-ui-unconventianal-but-is-it-unnecessary#comments</comments>
		<pubDate>Mon, 07 Jul 2008 08:50:33 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[General stuff]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/general-stuff/facebooks-iphone-specifc-ui-unconventianal-but-is-it-unnecessary</guid>
		<description><![CDATA[If you follow CSS3.Info then you&#8217;ll notice my post last week regarding the UI that Facebook have come up with specifically for iPhone. You&#8217;ll also notice that some managed to misinterpreted the information I was trying to put across (your apology was welcomed, but in case any of you are still unclear as to the [...]]]></description>
			<content:encoded><![CDATA[<p>If you follow CSS3.Info then you&#8217;ll notice <a href="http://www.css3.info/level-3-features-in-the-wild/">my post</a> last week regarding the UI that Facebook have come up with <strong>specifically</strong> for iPhone. You&#8217;ll also notice that <a href="http://www.css3.info/level-3-features-in-the-wild/#comment-176915">some</a> managed to misinterpreted the information I was trying to put across (your apology was welcomed, but in case any of you are still unclear as to the meaning behind my post, please read <a href="http://www.css3.info/level-3-features-in-the-wild/#comment-176928">my subsequent comment</a>).</p>
<p>Back to the subject in hand though; why did Facebook feel it was necessary to come up with a complete new iPhone UI? As Peter correctly suggested, the sites entire <a href="http://iphone.facebook.com/fb.css?0:71088">stylesheet</a> could be incorporated into a Media Query based on <a href="http://www.w3.org/TR/css3-mediaqueries/#max-width">max-width</a> so that handheld devices of varying width (within reason) are dealt the same layout. Granted, the site does have a prominent theme replicating the behaviour and colour palette that iPhone uses, so although the URL can of course be accessed through any browser (Opera Mini in my case), there is an obvious mis-match between the theme of the site and the skin that Opera Mini uses (it&#8217;s also worth noting that Opera Mini fell flat on it&#8217;s face trying to render anything other than the logo, links the either side of it, and the navigation menu below that- I&#8217;m guessing this is down to the processing power of my Nokia E65 as opposed to the browser itself).</p>
<p>Also it&#8217;s interesting that the site&#8217;s in quirks mode, and check out the <code>body &gt; .fullScreen</code> declaration- for some strange reason they&#8217;ve chosen to use a combination of <code>min-height</code> and <code>max-height</code> to emulate <code>height</code>!</p>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/general-stuff/facebooks-iphone-specific-ui-unconventianal-but-is-it-unnecessary/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A possibly overzealous comment by Eric?</title>
		<link>http://jhop.me/browsers/ie8/a-possibly-overzealous-comment-by-eric</link>
		<comments>http://jhop.me/browsers/ie8/a-possibly-overzealous-comment-by-eric#comments</comments>
		<pubDate>Sun, 15 Jun 2008 21:33:47 +0000</pubDate>
		<dc:creator>James Hopkins</dc:creator>
				<category><![CDATA[IE8]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://idreamincode.co.uk/browsers/a-possibly-overzealous-comment-by-eric</guid>
		<description><![CDATA[I was browsing the Guardian newspaper a couple of months ago (I meant to publish this post a couple of days after reading the article) and came across an article entitled, &#8220;Internet Explorer aims to embrace the web again&#8220;, so decided to take a closer look. Admittedly it was the first time I had read [...]]]></description>
			<content:encoded><![CDATA[<p>I was browsing the Guardian newspaper a couple of months ago (I meant to publish this post a couple of days after reading the article) and came across an article entitled, &#8220;<a href="http://www.guardian.co.uk/technology/2008/mar/13/microsoft.internet">Internet Explorer aims to embrace the web again</a>&#8220;, so decided to take a closer look. Admittedly it was the first time I had read the Technology section of the Guardian, and considering the mainstream format that a lot of broadsheets have, was pleasantly surprised to find the article went into somewhat more depth than I had expect it would do.</p>
<p>As you can read if you visit the link, the article starts off by explaining what Acid2 is and the hype at Mix08 surrounding IE8. What I found particularly interesting in the article was a single comment from Eric Meyer; it reads, &#8220;CSS support in IE8 looks thus far to be very, very promising&#8230;&#8221;. He does actually mention that he&#8217;s &#8220;<a href="http://meyerweb.com/eric/thoughts/2008/03/23/drugs-bugs-and-ie8/">never had any inside track</a>&#8221; from the IE guys, and granted, his comments did come before MS released <a href="http://msdn2.microsoft.com/en-us/library/cc351024(VS.85).aspx">a document outlining planned CSS support in the IE8 final release</a> (which I talk more about in a <a href="http://idreamincode.co.uk/browsers/today-i-nearly-broke-down-in-tears-in-annoyance">recent post</a>), but still&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jhop.me/browsers/ie8/a-possibly-overzealous-comment-by-eric/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
