<?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: IE formatting oddity</title>
	<atom:link href="http://www.svendtofte.com/stylesheets/ie-formatting-oddity/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svendtofte.com/stylesheets/ie-formatting-oddity/</link>
	<description>rantings &#38; scraps on code and web development</description>
	<pubDate>Mon, 01 Dec 2008 20:18:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: svendtofte</title>
		<link>http://www.svendtofte.com/stylesheets/ie-formatting-oddity/#comment-5</link>
		<dc:creator>svendtofte</dc:creator>
		<pubDate>Wed, 09 Jul 2008 21:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.svendtofte.com/?p=9#comment-5</guid>
		<description>Hmm, yeah, you're right. I guess the behavior is related to collapsing whitespace across tags. Since the trailing whitespace behind the &lt;code&gt;small&lt;/code&gt; tag gets collapsed, and it exists outside the tag, it gets the "normal" font-size. If trailing whitespace exists inside the tag (making it "small" font-size whitespace), all the trailign whitespace behind the second tag gets collapsed, and thus doesn't affect the line-height.

It's not really related to small tags alone, you can see the same thing happening here.

&lt;pre&gt;.wth {
font-size:50%;
background-color:green;
margin-top:0;}
...
&#60;h2&#62;foo&#60;/h2&#62;    &#60;span class="wth"&#62; b az&#60;/span&#62;
&#60;h2&#62;foo&#60;/h2&#62;    &#60;span class="wth"&#62; b az &#60;/span&#62;&lt;/pre&gt;

And no, I'm not really bothered, but it is interesting to observe.</description>
		<content:encoded><![CDATA[<p>Hmm, yeah, you&#8217;re right. I guess the behavior is related to collapsing whitespace across tags. Since the trailing whitespace behind the <code>small</code> tag gets collapsed, and it exists outside the tag, it gets the &#8220;normal&#8221; font-size. If trailing whitespace exists inside the tag (making it &#8220;small&#8221; font-size whitespace), all the trailign whitespace behind the second tag gets collapsed, and thus doesn&#8217;t affect the line-height.</p>
<p>It&#8217;s not really related to small tags alone, you can see the same thing happening here.</p>
<pre>.wth {
font-size:50%;
background-color:green;
margin-top:0;}
...
&lt;h2&gt;foo&lt;/h2&gt;    &lt;span class="wth"&gt; b az&lt;/span&gt;
&lt;h2&gt;foo&lt;/h2&gt;    &lt;span class="wth"&gt; b az &lt;/span&gt;</pre>
<p>And no, I&#8217;m not really bothered, but it is interesting to observe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey Docken</title>
		<link>http://www.svendtofte.com/stylesheets/ie-formatting-oddity/#comment-4</link>
		<dc:creator>Corey Docken</dc:creator>
		<pubDate>Wed, 09 Jul 2008 19:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.svendtofte.com/?p=9#comment-4</guid>
		<description>I stumbled across your site looking at a post you wrote about expressions in CSS and I went to the main page and noticed this post.  I figured out what is going on here...  If you drag your mouse after the second "b az" text (the one you are having issues with), you'll notice that Internet Explorer adds a space before taking advantage of the line break you have.  If you were to put the hr tag directly after closing your second small tag (no spaces or line breaks), the problem should go away.

You don't seem to be too worked up about it, but I thought I'd just mention my thoughts on this subject.</description>
		<content:encoded><![CDATA[<p>I stumbled across your site looking at a post you wrote about expressions in CSS and I went to the main page and noticed this post.  I figured out what is going on here&#8230;  If you drag your mouse after the second &#8220;b az&#8221; text (the one you are having issues with), you&#8217;ll notice that Internet Explorer adds a space before taking advantage of the line break you have.  If you were to put the hr tag directly after closing your second small tag (no spaces or line breaks), the problem should go away.</p>
<p>You don&#8217;t seem to be too worked up about it, but I thought I&#8217;d just mention my thoughts on this subject.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
