OLD | NEW |
1 <style> | 1 <style> |
2 .c1::after { float: left; content: open-quote; } | 2 .c1::after { float: left; content: open-quote; } |
3 .c1:first-letter { display: table-column; } | 3 .c1:first-letter { display: table-column; } |
4 .c1[class~="c1"] { display: -webkit-inline-box; } | 4 .c1[class~="c1"] { display: -webkit-inline-box; } |
5 </style> | 5 </style> |
6 <script> | 6 <script> |
7 var parentDiv = document.createElement('div'); | 7 var parentDiv = document.createElement('div'); |
8 var childDiv = document.createElement('div'); | 8 var childDiv = document.createElement('div'); |
9 | 9 |
10 parentDiv.setAttribute('class', 'c1'); | 10 parentDiv.setAttribute('class', 'c1'); |
11 document.documentElement.appendChild(parentDiv); | 11 document.documentElement.appendChild(parentDiv); |
12 parentDiv.appendChild(childDiv); | 12 parentDiv.appendChild(childDiv); |
13 parentDiv.appendChild(document.createTextNode('PASS if no exception or crash')); | 13 parentDiv.appendChild(document.createTextNode('PASS if no exception or crash')); |
14 document.documentElement.offsetHeight; // forces a layout | 14 document.documentElement.offsetHeight; // forces a layout |
15 parentDiv.removeChild(childDiv); | 15 parentDiv.removeChild(childDiv); |
16 if (window.layoutTestController) | 16 if (window.layoutTestController) |
17 layoutTestController.dumpAsText(); | 17 layoutTestController.dumpAsText(); |
18 </script> | 18 </script> |
OLD | NEW |