<?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>Netscraps &#187; internet explorer</title>
	<atom:link href="http://blog.netscraps.com/category/internet-explorer/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.netscraps.com</link>
	<description>anything that catches my attention.</description>
	<lastBuildDate>Sun, 25 Jul 2010 16:32:35 +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>IE6/IE7 form element margin inheritance bug</title>
		<link>http://blog.netscraps.com/internet-explorer/ie6-ie7-margin-inheritance-bug.html</link>
		<comments>http://blog.netscraps.com/internet-explorer/ie6-ie7-margin-inheritance-bug.html#comments</comments>
		<pubDate>Thu, 26 Oct 2006 15:08:07 +0000</pubDate>
		<dc:creator>netscraps</dc:creator>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://blog.netscraps.com/?p=10</guid>
		<description><![CDATA[Today I ran across an IE6/7 (and who knows, probably IE5 too) margin inheritance bug, involving block elements with IE&#8217;s hasLayout property triggered, that contain certain form elements. This bug appears to have very little online documentation or discussion (UPDATE: now documented by positioniseverything, see links section below). Any side margins (the blue 100px) applied [...]]]></description>
			<content:encoded><![CDATA[<p>Today I ran across an IE6/7 (and who knows, probably IE5 too) margin inheritance bug, involving block elements with IE&#8217;s hasLayout property triggered, that contain certain form elements. This bug appears to have very little online documentation or discussion (UPDATE: now documented by positioniseverything, see links section below).</p>
<p><img alt="IE margin inheritance bug" id="image12" src="http://blog.netscraps.com/wp-content/uploads/2006/10/ie-margin-inheritance-bug.png" /></p>
<p>Any side margins (the blue 100px) applied to block-level hasLayout elements will be erroneously inherited (the red 100px) by text, submit, button and textarea fields contained within the block elements. Select boxes, checkboxes &#038; radio buttons are not affected.</p>
<p>Applying <em>margin: 0</em> to the input or textarea fields has no effect. All your margin are belong to us.</p>
<p><strong><a title="IE6/IE7 floated block element / input margin bug" href="http://www.carcomplaints.com/test/ie-label-margin-bug.html">Here is my test page »</a></strong></p>
<p>If your design does not have a border on the block-level element, this bug has the <em>identical <strong>visual</strong> effect</em> as the well-known IE6 floated element/margin-doubling bug, but the real cause is <em>not</em> the IE6 margin-doubling bug.</p>
<p>I found this issue having just installed IE7, still giddy over the wide array of css fixes. For a few minutes, I thought maybe the IE team had forgotten to fix the float/margin-doubling bug with blockified labels, but no.. this margin inheritance bug is an entirely different beast.</p>
<p>My findings are a little different from the other information I found (at the time of this post, the only existing explanation of this bug I could find was from <a href="http://www.xs4all.nl/%7Eblackeye/marginright_bug2.html">Paul van Steenoven</a>):</p>
<ul>
<li>it does not matter if the elements are contained in a fieldset</li>
<li>input type=&#8221;checkbox&#8221; and type=&#8221;radio&#8221; are not affected</li>
</ul>
<p><strong>The fix / hack</strong></p>
<ul>
<li>wrap your bug-affected input / textarea elements in any inline element, like a span (if you&#8217;re okay with that .. I&#8217;m not)</li>
</ul>
<p>Or, if possible:</p>
<ul>
<li>set <em>display: inline</em> on the block-level hasLayout parent element, or similarly, remove the css property that&#8217;s triggering hasLayout (width, etc) on the block-level parent element (not possible in most cases)</li>
<li>remove side margins on all parent containers of the form element (suggested by <a target="_blank" href="http://jaspan.com/ie-inherited-margin-bug-form-elements-and-haslayout">Barry Jaspan</a>, who points out this solution also may not be realistic)</li>
<li>set an IE-only negative margin on the affected form elements (also from Barry, who agrees with you this is needlessly messy, to the point where CSS purists may start throwing heavy objects)</li>
<li>include text on the same line just before the form element (yep, Barry again, nice catch. Not possible if you want the text above the form element.. for example, <code>some text&lt;br /&gt; &lt;input .. /&gt;</code> doesn&#8217;t work)</li>
<li>any others?</li>
</ul>
<p><strong>Other sites with information on this bug</strong></p>
<ul>
<li><a href="http://www.xs4all.nl/~blackeye/marginright_bug2.html">Paul van Steenoven&#8217;s test page<br />
</a></li>
<li><a href="http://www.didoo.net/permalinks/IE_margin-right_inherit_bug_revisited.html">the test page, expanded</a> to show situations where Paul&#8217;s <em>overflow: hidden</em> fix does not work</li>
<li><a href="http://www.quirksmode.org/bugreports/archives/2005/09/Margin_inheritance_bug.html">quirksmode report</a></li>
</ul>
<p>Update:</p>
<ul>
<li><a href="http://jaspan.com/ie-inherited-margin-bug-form-elements-and-haslayout">Barry Jaspan</a> did a nice writeup, which was later covered by <a href="http://www.positioniseverything.net/">positioniseverything</a>. I&#8217;m rather bitter, since I did my writeup about the bug about a month prior. Granted, Barry covered the issue more in-depth, and he also points out that the affected form elements actually inherit the sum of the side-margins of all parent elements, AND provided several more methods to work around the bug.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.netscraps.com/internet-explorer/ie6-ie7-margin-inheritance-bug.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>IE6/IE7 PNG gAMA bug makes PNGs appear darker</title>
		<link>http://blog.netscraps.com/internet-explorer/ie6-ie7-png-gama-bug-makes-pngs-darker.html</link>
		<comments>http://blog.netscraps.com/internet-explorer/ie6-ie7-png-gama-bug-makes-pngs-darker.html#comments</comments>
		<pubDate>Tue, 24 Oct 2006 18:26:25 +0000</pubDate>
		<dc:creator>netscraps</dc:creator>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.netscraps.com/?p=6</guid>
		<description><![CDATA[The link PNGs appear darker, except for Email A Friend, which has the gAMA chunk removed. In setting up the new vehicle details page for DDC, I noticed that the background color for the 24-bit PNGs did not match the css background color, but only in IE6. Searching online, I found this is a known [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image5" alt="IE PNG gAMA bug" src="http://blog.netscraps.com/wp-content/uploads/2006/10/png_bug.png" /><br />
<em style="font-size: 8pt">The link PNGs appear darker, except for Email A Friend, which has the gAMA chunk removed.</em></p>
<p>In setting up the <a href="http://ddcdemos_up021.demos.dealer.com/used_vehicle_details.htm?vehicleId=f00f9a044046381c00e8787a90548259">new vehicle details page</a> for DDC, I noticed that the background color for the 24-bit PNGs did not match the css background color, but only in IE6.</p>
<p>Searching online, I found this is a <a href="http://www.easy-reader.net/archives/2006/02/18/png-color-oddities-in-ie/">known bug with IE</a> that stems from a <a title="PNG gamma correction analysis" href="http://hsivonen.iki.fi/png-gamma/">flawed interpretation of the PNG&#8217;s gAMA setting</a>.  It&#8217;s fantastic that the IE team added PNG alpha transparency to IE7, but apparently they kept the gAMA bug in IE7 to make sure browser compatibility specialists keep their jobs for years to come.</p>
<p>In short, the fix is to remove the gAMA chunk using a tool such as <a href="http://entropymine.com/jason/tweakpng/">TweakPNG</a> or <a href="http://pmt.sourceforge.net/pngcrush/">Pngcrush</a> &#8212; I used TweakPNG (freeware, super easy to use, no installer) which worked great for fixing one image at a time. Fun stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.netscraps.com/internet-explorer/ie6-ie7-png-gama-bug-makes-pngs-darker.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
