Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 html, body { margin: 0; padding: 0; } | |
| 4 td::first-letter { color: green; } | |
| 5 td { quotes: "A" "v" "B" "u" ; } | |
| 6 .class1:before, .class2:before { | |
| 7 content: open-quote; | |
| 8 } | |
| 9 </style> | |
| 10 <script> | |
| 11 function runTest() { | |
| 12 element1 = document.createElement('div'); | |
| 13 element1.setAttribute('class', 'class2'); | |
| 14 document.documentElement.appendChild(element1); | |
|
Xianzhu
2014/10/22 17:39:25
What's the purpose of the div? It seems to have th
| |
| 15 | |
| 16 element2 = document.createElement('td'); | |
| 17 element2.setAttribute('class', 'class1'); | |
| 18 document.documentElement.appendChild(element2); | |
| 19 | |
| 20 document.documentElement.offsetTop; | |
|
Xianzhu
2014/10/22 17:39:25
The above line seems unnecessary for a ref test.
| |
| 21 } | |
| 22 window.onload = runTest; | |
| 23 </script> | |
| 24 | |
| 25 <p>Test passes if you see a quote on one line and a green B on the second line.< /p> | |
| OLD | NEW |