| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <style> | 4 <style> |
| 5 #test2:first-letter { display: block; } | 5 #test2:first-letter { display: block; } |
| 6 </style> | 6 </style> |
| 7 <script> | 7 <script> |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 | 10 |
| 11 window.onload = function() { | 11 window.onload = function() { |
| 12 test1 = document.createElement('div'); | 12 test1 = document.createElement('div'); |
| 13 document.body.appendChild(test1); | 13 document.body.appendChild(test1); |
| 14 test2 = document.createElement('div'); | 14 test2 = document.createElement('div'); |
| 15 test2.setAttribute('id', 'test2'); | 15 test2.setAttribute('id', 'test2'); |
| 16 test2.appendChild(document.createTextNode('aaa')); | 16 test2.appendChild(document.createTextNode('aaa')); |
| 17 test2.style.display = 'inline-block'; | 17 test2.style.display = 'inline-block'; |
| 18 test1.appendChild(test2); | 18 test1.appendChild(test2); |
| 19 test1.appendChild(document.createTextNode('a')); | 19 test1.appendChild(document.createTextNode('a')); |
| 20 document.execCommand('selectall'); | 20 document.execCommand('selectall'); |
| 21 document.body.offsetTop; | 21 document.body.offsetTop; |
| 22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }"); | 22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }", 0
); |
| 23 document.body.offsetTop; | 23 document.body.offsetTop; |
| 24 document.body.innerHTML = "PASS"; | 24 document.body.innerHTML = "PASS"; |
| 25 } | 25 } |
| 26 </script> | 26 </script> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |