Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / pagination / first-letter-inherit-all-crash.html
blobb23b65ad6241a511ad11b8e303d0d13848215796
1 <!DOCTYPE html>
2 <style>
3 #elm { overflow-y:-webkit-paged-y; }
5 /* Need to float the first letter, to turn it into a block. Otherwise, overflow-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 extracting innerText,
10 because the implementation expects that the first letter text is a direct child of the
11 ::first-letter pseudo object. The paged overflow / multicol implementation would violate this
12 assumption by inserting a flow thread object between the ::first-letter pseudo 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>