OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html style="font: 1em/1 Ahem, sans-serif;"> | 2 <html style="font: 1em/1 Ahem, sans-serif;"> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 .c1 { display: inline-table; color: blue} | 4 .c1 { display: inline-table; color: blue} |
5 .c1:before { overflow: hidden; content: counter(section); color: red} | 5 .c1:before { overflow: hidden; content: counter(section); color: red} |
6 .c1:nth-child(2n) { text-decoration: overline; } | 6 .c1:nth-child(2n) { text-decoration: overline; } |
7 </style> | 7 </style> |
8 <body> | 8 <body> |
9 <div class="c1" id="div1"><q style="display:inline-table"></q></div> | 9 <div class="c1" id="div1"><q style="display:inline-table"></q></div> |
10 </body> | 10 </body> |
11 <script> | 11 <script> |
12 function runTest() { | 12 function runTest() { |
13 document.getElementById('div1').setAttribute('class', 'c1'); | 13 document.getElementById('div1').setAttribute('class', 'c1'); |
14 document.body.offsetTop; | 14 document.body.offsetTop; |
15 } | 15 } |
16 window.onload = runTest; | 16 window.onload = runTest; |
17 </script> | 17 </script> |
18 </html> | 18 </html> |
OLD | NEW |