Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / single-line-must-not-be-split-into-two-pages.html
blobbb78f9d30b354164e4a265c1c8068ac8c15f1540
1 <html>
2 <head>
3 </head>
4 <style>
5 /* relative positioning ensures underlying Layer */
6 .renderingArea {
7 position: relative;
9 </style>
10 <body>
11 <p>
12 A single line must not be split into two pages.
13 This test checks if a single line is not split into two pages.
14 To run this test manually, comment out the last two lines of JavaScript
15 (See the comment in JavaScript) and then print this page.
16 If no lines are split into two pages, the test passes.
17 </p>
18 <div class="renderingArea" id="renderingArea1"></div>
19 <div class="renderingArea" id="renderingArea2"></div>
20 <p>Non-overflowed lines:</p>
21 <pre id="nonOverflowedLines"></pre>
22 <p>Overflowed lines:</p>
23 <pre id="overflowedLines"></pre>
24 <script>
25 if (window.testRunner)
26 testRunner.dumpAsText();
28 var str = "";
29 for (var i = 0; i < 400; i++) {
30 str += "WWWWWW<br />";
32 document.getElementById("renderingArea1").innerHTML = str;
33 if (window.internals)
34 document.getElementById("nonOverflowedLines").innerText = window.internals.elementLayoutTreeAsText(document.getElementById("renderingArea1"));
36 str = "";
37 for (var i = 0; i < 400; i++) {
38 str += "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW<br />";
40 document.getElementById("renderingArea2").innerHTML = str;
41 if (window.internals)
42 document.getElementById("overflowedLines").innerText = window.internals.elementLayoutTreeAsText(document.getElementById("renderingArea2"));
44 // To test manually, comment out the following two lines,
45 // print this page, and check if no lines are split across two pages.
46 document.getElementById("renderingArea1").innerHTML = "";
47 document.getElementById("renderingArea2").innerHTML = "";
48 </script>
49 </body>
50 </html>