|
1 <!DOCTYPE html> |
|
2 <html> |
|
3 <head> |
|
4 <title>CSS 2.1 Test Suite: anonymous table boxes</title> |
|
5 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> |
|
6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> |
|
7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/> |
|
8 <meta name="flags" content="dom" /> |
|
9 <style> |
|
10 #x:after { content: " cd"; display: table-cell; } |
|
11 </style> |
|
12 <script> |
|
13 function doTest() { |
|
14 var f = document.getElementById("f"); |
|
15 f.parentNode.removeChild(f); |
|
16 } |
|
17 </script> |
|
18 </head> |
|
19 <body onload="doTest()"> |
|
20 <div style="font-family: monospace; width: 10em; white-space: pre-wrap"><span id="f" style="float: left; width: 80%; height: 0.5em"></span><span id="x">a <script>document.body.offsetWidth;</script> <span style="display: table-cell">b</span></span></div> |
|
21 </body> |
|
22 </html> |