Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / whitespace / pre-block-normal-inline-crash-2.html
blobd476ccc7b06c30c8fd7dbf2e9ebbdcb83ec77297
1 <style>
2 body {
3 margin-right: 100%;
5 .normal {
6 padding-left: 1px;
7 white-space: normal;
8 word-wrap: break-word;
10 .pre {
11 white-space: pre;
13 </style>
14 <div id=id1 style="height:1000px"></div>
15 <table>
16 <div>
17 <caption id=id5 style="-webkit-appearance: sliderthumb-vertical"></caption>
18 <div class="pre"><span id=id3 class="normal">
19 This test passes if it does not CRASH.<span id=id4></span></span></div>
20 </div>
21 </table>
22 </body>
23 <script>
24 id3.appendChild(id5);
25 document.documentElement.offsetTop;
26 id1.parentElement.removeChild(id1);
27 document.documentElement.offsetTop;
28 id4.appendChild(id5);
29 // Tests a case where an inline element that sets white-space:normal nested
30 // in a block that sets white-space:pre works correctly when there is a
31 // line break at the start of the inline element.
32 if (window.testRunner)
33 testRunner.dumpAsText();
34 </script>