OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #elm { overflow-y:-webkit-paged-y; } |
| 4 |
| 5 /* Need to float the first letter, to turn it into a block. Otherwise, overf
low-y wouldn't be |
| 6 an applicable property in the first place. */ |
| 7 #elm::first-letter { all:inherit; float:left; } |
| 8 </style> |
| 9 <p>overflow-y isn't a valid property for ::first-letter. We'd crash when extract
ing innerText, |
| 10 because the implementation expects that the first letter text is a direct ch
ild of the |
| 11 ::first-letter pseudo object. The paged overflow / multicol implementation w
ould violate this |
| 12 assumption by inserting a flow thread object between the ::first-letter pseu
do object and the |
| 13 actual text.</p> |
| 14 <p>PASS if no crash or assertion failure.</p> |
| 15 <div id="elm">x</div> |
| 16 <script> |
| 17 if (window.testRunner) |
| 18 testRunner.dumpAsText(); |
| 19 document.getElementById("elm").innerText; |
| 20 </script> |
OLD | NEW |