OLD | NEW |
1 <style type="text/css"> | 1 <style type="text/css"> |
2 #target::before { content: "BEFORE"; display: table-row; } | 2 #target::before { content: "BEFORE"; display: table-row; } |
3 #target::after { content: "AFTER"; display: table-row; } | 3 #target::after { content: "AFTER"; display: table-row; } |
4 </style> | 4 </style> |
5 <p> | 5 <p> |
6 Should say “BEFORE CONTENT AFTER CONTENT” | 6 Should say “BEFORE CONTENT AFTER CONTENT” |
7 </p> | 7 </p> |
8 <div id="not-target" style="display: table"> | 8 <div id="not-target" style="display: table"> |
9 <div>CONTENT</div> | 9 <div>CONTENT</div> |
10 </div> CONTENT | 10 </div> CONTENT |
11 <script> | 11 <script> |
12 document.getElementById("not-target").id = "target"; | 12 document.getElementById("not-target").id = "target"; |
13 document.body.offsetTop; | 13 document.body.offsetTop; |
14 document.body.style.color = "red"; | 14 document.body.style.color = "red"; |
15 </script> | 15 </script> |
16 | 16 |
OLD | NEW |