424236-9-ref.html (861B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html lang="en-US"> 4 <head> 5 <title>reftest, bug 424236</title> 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7 <meta http-equiv="Content-Style-Type" content="text/css"> 8 <style type="text/css"> 9 10 body { font-size: 16px; } 11 * { -moz-outline-offset: -1px; outline-offset: -1px; } 12 body > span { outline: 1px dotted black; } 13 /* can't compare to border combined with negative margin because of 14 margin collapsing */ 15 body > div { display: block; outline: 1px dotted black; width: 10em; } 16 body > div + span + div { width: 5em; } 17 18 </style> 19 </head> 20 <body> 21 22 <div>text</div><span>Some words that must be wider than 10em</span><div>text</div> 23 24 </body> 25 </html>