Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / text-between-two-brs-in-nowrap-overflow.html
blob9ee1344bb36c1ec33ceb0b853215ff232eb05f7f
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test ensures WebKit renders text node between two BR elements in a pre when inserted by a script immediately after triggering a layout. You should see PASS below:</p>
5 <pre id="test" style="width: 10ex;">---------- -----<br><br></pre>
6 <script>
8 document.body.offsetTop;
10 var text = document.createTextNode('text');
11 var span = document.createElement('span');
12 span.appendChild(text);
13 test.insertBefore(span, document.getElementsByTagName('br')[1]);
15 var passed = span.offsetHeight > 0 ? true : false;
16 test.parentNode.removeChild(test);
18 if (window.testRunner)
19 testRunner.dumpAsText();
20 document.writeln(passed ? 'PASS' : 'FAIL');
22 </script>
23 </body>
24 </html>