<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Percentage rounding and sub pixel perfection</title>
	<atom:link href="http://www.agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/feed/" rel="self" type="application/rss+xml" />
	<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/</link>
	<description>Take the lead out...</description>
	<pubDate>Tue, 07 Feb 2012 19:15:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Russ</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-58980</link>
		<dc:creator>Russ</dc:creator>
		<pubDate>Fri, 17 Sep 2010 14:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-58980</guid>
		<description>It's unfortunate to see even this page is getting spammed by people hawking medications.</description>
		<content:encoded><![CDATA[<p>It&#8217;s unfortunate to see even this page is getting spammed by people hawking medications.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Rivers</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-54930</link>
		<dc:creator>David Rivers</dc:creator>
		<pubDate>Thu, 05 Aug 2010 14:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-54930</guid>
		<description>This discussion is fascinating as I began the other night rolling my own grids solution I call gridular: http://github.com/DavidRivers/gridular.  I wasn't much aware of the "subpixel rounding" issues until I saw the term being listed as a feature of a CSS library while doing research.  I haven't even tested across browsers yet and my library is extremely alpha, but I might have to adopt Stubbornella's solution to this issue.

Stubbornella also forced me to consider removing gutters from units.  I would like to follow the OOCSS design principles as much as possible, but I may have to make a compromise for the sake of designer sanity.  I had envisioned providing a .gr.gr-m (a "Grid" with a margin "Grid Style" applied to it) as a class providing sane margin/gutter defaults (if such a thing exists) on grids, based on design theory if I can find enough theory to support specific algebra, and derivative classes to either add or remove margins/gutters if the designer wants more or less.  I'm not really sure where I'm going to end up with this idea, but I would really like to ease the burden of whitespacing grids and units if possible.

Robert, did you ever finish the CSS library you discuss in this blog entry?  I am curious to see what you have come up with.</description>
		<content:encoded><![CDATA[<p>This discussion is fascinating as I began the other night rolling my own grids solution I call gridular: <a href="http://github.com/DavidRivers/gridular" rel="nofollow">http://github.com/DavidRivers/gridular</a>.  I wasn&#8217;t much aware of the &#8220;subpixel rounding&#8221; issues until I saw the term being listed as a feature of a CSS library while doing research.  I haven&#8217;t even tested across browsers yet and my library is extremely alpha, but I might have to adopt Stubbornella&#8217;s solution to this issue.</p>
<p>Stubbornella also forced me to consider removing gutters from units.  I would like to follow the OOCSS design principles as much as possible, but I may have to make a compromise for the sake of designer sanity.  I had envisioned providing a .gr.gr-m (a &#8220;Grid&#8221; with a margin &#8220;Grid Style&#8221; applied to it) as a class providing sane margin/gutter defaults (if such a thing exists) on grids, based on design theory if I can find enough theory to support specific algebra, and derivative classes to either add or remove margins/gutters if the designer wants more or less.  I&#8217;m not really sure where I&#8217;m going to end up with this idea, but I would really like to ease the burden of whitespacing grids and units if possible.</p>
<p>Robert, did you ever finish the CSS library you discuss in this blog entry?  I am curious to see what you have come up with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herve</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-42481</link>
		<dc:creator>Herve</dc:creator>
		<pubDate>Sat, 24 Apr 2010 03:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-42481</guid>
		<description>If tables were called grids would people stop saying they should only be used for tabular data?</description>
		<content:encoded><![CDATA[<p>If tables were called grids would people stop saying they should only be used for tabular data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stubbornella</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-9378</link>
		<dc:creator>Stubbornella</dc:creator>
		<pubDate>Fri, 06 Mar 2009 03:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-9378</guid>
		<description>Robert,

Check it out now.  The file size is even smaller, no gutters, and the lastUnit takes all remaining space, even in IE5.5 and 6! I'm so pleased.  :) Position relative on the lastUnit was the key.  

The only caveat now is that content being wider than the grid itself can cause a wrap.  For example an extra long word at really narrow widths.  In my tests it works perfectly for all normal scenarios.

The IE5.5 support is really key, because quirksmode in later versions of IE is much more like 5.5.

http://github.com/stubbornella/oocss/blob/3f0b8664446ee1f911d91370945cf948581ba484/css/grids.css

Let me know if you manage to break anything, good use cases are always welcome!

Cheers,
Nicole</description>
		<content:encoded><![CDATA[<p>Robert,</p>
<p>Check it out now.  The file size is even smaller, no gutters, and the lastUnit takes all remaining space, even in IE5.5 and 6! I&#8217;m so pleased.  <img src='http://agilewebmasters.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Position relative on the lastUnit was the key.  </p>
<p>The only caveat now is that content being wider than the grid itself can cause a wrap.  For example an extra long word at really narrow widths.  In my tests it works perfectly for all normal scenarios.</p>
<p>The IE5.5 support is really key, because quirksmode in later versions of IE is much more like 5.5.</p>
<p><a href="http://github.com/stubbornella/oocss/blob/3f0b8664446ee1f911d91370945cf948581ba484/css/grids.css" rel="nofollow">http://github.com/stubbornella/oocss/blob/3f0b8664446ee1f911d91370945cf948581ba484/css/grids.css</a></p>
<p>Let me know if you manage to break anything, good use cases are always welcome!</p>
<p>Cheers,<br />
Nicole</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Gentel</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-9370</link>
		<dc:creator>Robert Gentel</dc:creator>
		<pubDate>Fri, 06 Mar 2009 00:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-9370</guid>
		<description>Nicole,

I wrestled with this issue for a couple of sleepless nights back then. Here were the results of my own research:

1) There's no way around the issue without feeding IE lesser values.
2) The more columns you have, the lower the value needs to be, making it pretty obscene if you have enough columns (I was shooting for a 12-column grid because of how divisible it is).

I, for one, like the gutters on the grid level, so if you had a solution with gutters I'd personally be interested in it. So far of all the CSS grids I've seen I've liked your fledgling one best, and am interested in building off it and extending it if I don't end up rolling my own.</description>
		<content:encoded><![CDATA[<p>Nicole,</p>
<p>I wrestled with this issue for a couple of sleepless nights back then. Here were the results of my own research:</p>
<p>1) There&#8217;s no way around the issue without feeding IE lesser values.<br />
2) The more columns you have, the lower the value needs to be, making it pretty obscene if you have enough columns (I was shooting for a 12-column grid because of how divisible it is).</p>
<p>I, for one, like the gutters on the grid level, so if you had a solution with gutters I&#8217;d personally be interested in it. So far of all the CSS grids I&#8217;ve seen I&#8217;ve liked your fledgling one best, and am interested in building off it and extending it if I don&#8217;t end up rolling my own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stubbornella</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-9369</link>
		<dc:creator>Stubbornella</dc:creator>
		<pubDate>Fri, 06 Mar 2009 00:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-9369</guid>
		<description>Hi Robert,

I saw your tweet re: IE rounding errors.  I hadn't capitalized the "lastUnit" class name in the AG test grids. Oops.

Thanks for the link to this article.  I resolved the problem for better browsers (IE7+, FF, Safari, Chrome) by having no set width on the last unit in any row.  This means that the last unit absorbs the subtle rounding differences between those browsers.  overflow:hidden is the trick, if you read the spec it is a subtle effect of this property when no height is specified.

On the other hand, IE6.  :)  My grids used to have gutters.  I recently removed them, because I felt it was important that gutters live on content objects rather than grids. I used the gutter to help IE6 by floating the last unit right.  That meant that between the last two units an ~10px gap absorbed the rounding errors in IE6.  Ultimately, I need a way to tell IE6 that the last unit should be all the rest of the space on the line, whatever that might be.  Removing the width causes the calculation to be content dependent and, like you've talked about above, having a width causes (at some resolution or another) the unit to wrap.  

I really don't want to put gutters back in the grids (though they worked very well and were well tested with gutters)... so I'm searching for a solution. I've documented the bug here:
http://stubbornella.lighthouseapp.com/projects/26663-object-oriented-css/tickets/1-arnaud-gueras-test-wrapping-on-ie#ticket-1-4

Thanks again for your feedback,
Nicole</description>
		<content:encoded><![CDATA[<p>Hi Robert,</p>
<p>I saw your tweet re: IE rounding errors.  I hadn&#8217;t capitalized the &#8220;lastUnit&#8221; class name in the AG test grids. Oops.</p>
<p>Thanks for the link to this article.  I resolved the problem for better browsers (IE7+, FF, Safari, Chrome) by having no set width on the last unit in any row.  This means that the last unit absorbs the subtle rounding differences between those browsers.  overflow:hidden is the trick, if you read the spec it is a subtle effect of this property when no height is specified.</p>
<p>On the other hand, IE6.  <img src='http://agilewebmasters.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  My grids used to have gutters.  I recently removed them, because I felt it was important that gutters live on content objects rather than grids. I used the gutter to help IE6 by floating the last unit right.  That meant that between the last two units an ~10px gap absorbed the rounding errors in IE6.  Ultimately, I need a way to tell IE6 that the last unit should be all the rest of the space on the line, whatever that might be.  Removing the width causes the calculation to be content dependent and, like you&#8217;ve talked about above, having a width causes (at some resolution or another) the unit to wrap.  </p>
<p>I really don&#8217;t want to put gutters back in the grids (though they worked very well and were well tested with gutters)&#8230; so I&#8217;m searching for a solution. I&#8217;ve documented the bug here:<br />
<a href="http://stubbornella.lighthouseapp.com/projects/26663-object-oriented-css/tickets/1-arnaud-gueras-test-wrapping-on-ie#ticket-1-4" rel="nofollow">http://stubbornella.lighthouseapp.com/projects/26663-object-oriented-css/tickets/1-arnaud-gueras-test-wrapping-on-ie#ticket-1-4</a></p>
<p>Thanks again for your feedback,<br />
Nicole</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Gentel</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-8712</link>
		<dc:creator>Robert Gentel</dc:creator>
		<pubDate>Tue, 24 Feb 2009 20:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-8712</guid>
		<description>Funny you should mention that, I was discussing its merits seriously with the lead developer last night. Ultimately, it has its own downsides that we find unacceptable (e.g. IE table rendering speed).</description>
		<content:encoded><![CDATA[<p>Funny you should mention that, I was discussing its merits seriously with the lead developer last night. Ultimately, it has its own downsides that we find unacceptable (e.g. IE table rendering speed).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: François Beausoleil</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-8696</link>
		<dc:creator>François Beausoleil</dc:creator>
		<pubDate>Tue, 24 Feb 2009 14:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-8696</guid>
		<description>This is tongue in cheek, but why not use a layout table ;)</description>
		<content:encoded><![CDATA[<p>This is tongue in cheek, but why not use a layout table <img src='http://agilewebmasters.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Gentel</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-8605</link>
		<dc:creator>Robert Gentel</dc:creator>
		<pubDate>Mon, 23 Feb 2009 06:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-8605</guid>
		<description>The requirements include liquid layout, which precludes such static positioning. Any of the CSS frameworks I mentioned would work out-of-box if there were not the liquid requirements. However this is a popular site with enough users at 800X600 to make a move to a 960 grid unacceptable, and enough users at high resolutions to make the "lowest common denominator" approach unacceptable.</description>
		<content:encoded><![CDATA[<p>The requirements include liquid layout, which precludes such static positioning. Any of the CSS frameworks I mentioned would work out-of-box if there were not the liquid requirements. However this is a popular site with enough users at 800X600 to make a move to a 960 grid unacceptable, and enough users at high resolutions to make the &#8220;lowest common denominator&#8221; approach unacceptable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chuck</title>
		<link>http://agilewebmasters.com/robert/percentage-rounding-and-sub-pixel-perfection/#comment-8604</link>
		<dc:creator>chuck</dc:creator>
		<pubDate>Mon, 23 Feb 2009 06:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://agilewebmasters.com/?p=244#comment-8604</guid>
		<description>Oh, hey, you wrote back! Sorry I missed it; I was out and then typed the next one without refreshing.

Cool enough; whatever gets the job done for you! I'm a JS junkie myself. I was indeed quite surprised to see that resizing video with the rounded-up widths; I knew I didn't like using CSS width percentages as a production-ready layout solution, but I didn't know I had that much reason to stay away. Ouch!

Kick ass post, by the way, thanks. :)</description>
		<content:encoded><![CDATA[<p>Oh, hey, you wrote back! Sorry I missed it; I was out and then typed the next one without refreshing.</p>
<p>Cool enough; whatever gets the job done for you! I&#8217;m a JS junkie myself. I was indeed quite surprised to see that resizing video with the rounded-up widths; I knew I didn&#8217;t like using CSS width percentages as a production-ready layout solution, but I didn&#8217;t know I had that much reason to stay away. Ouch!</p>
<p>Kick ass post, by the way, thanks. <img src='http://agilewebmasters.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

