M
Michael J. Reynolds
Has anyone else experienced this IE6 bug? If you try to print or
print-preview a document that contains elements specifying position:absolute
style and new negative-valued padding and positive-valued margin styles in a
particular sequence, IE6 crashes. Here's a document demonstrating the bug
and specifying the exact circumstances that cause the crash:
<HTML>
<HEAD><TITLE>position:absolute bug demo</TITLE></head>
<body>
<div style="position:absolute; left: 50px; top: 50px;">
Outer element specifying position:absolute style
<p>Demonstrates IE6 print position:absolute bug.
Print preview this document and IE6 will crash</p>
<p>Bug causes IE to crash in the following circumstance:
<ul>
<li>an outer element specifies the
<code>position:absolute</code> style command
<li>another element within the outer element contains
text
<li>another element within the inner element specifies a
new
negative-value <code>margin</code> style
and a new positive-value <code>padding</code> style
<li>the elements span two pages if printed
<li>user tries to print the page or invoke print-preview
</ul>
</p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<AnyElement>Any text within an inner element
<div style="padding: 1px 0; margin: -1px 0 0 0;">
an inner inner element specifying a new positive-value
padding
and negative-value margin
</div>
</AnyElement>
</div>
</BODY>
</HTML>
The printer being used has no effect. Please respond if you've encountered
this bug or know if Microsoft is aware of it.
-- Mike Reynolds
Libraries ITS
University of Washington
print-preview a document that contains elements specifying position:absolute
style and new negative-valued padding and positive-valued margin styles in a
particular sequence, IE6 crashes. Here's a document demonstrating the bug
and specifying the exact circumstances that cause the crash:
<HTML>
<HEAD><TITLE>position:absolute bug demo</TITLE></head>
<body>
<div style="position:absolute; left: 50px; top: 50px;">
Outer element specifying position:absolute style
<p>Demonstrates IE6 print position:absolute bug.
Print preview this document and IE6 will crash</p>
<p>Bug causes IE to crash in the following circumstance:
<ul>
<li>an outer element specifies the
<code>position:absolute</code> style command
<li>another element within the outer element contains
text
<li>another element within the inner element specifies a
new
negative-value <code>margin</code> style
and a new positive-value <code>padding</code> style
<li>the elements span two pages if printed
<li>user tries to print the page or invoke print-preview
</ul>
</p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<p> </p><p> </p><p> </p><p> </p>
<AnyElement>Any text within an inner element
<div style="padding: 1px 0; margin: -1px 0 0 0;">
an inner inner element specifying a new positive-value
padding
and negative-value margin
</div>
</AnyElement>
</div>
</BODY>
</HTML>
The printer being used has no effect. Please respond if you've encountered
this bug or know if Microsoft is aware of it.
-- Mike Reynolds
Libraries ITS
University of Washington