Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / css2.1 / page-break-before-000.html
blob4994b9825ee3fe4008bb9ded4601a006303cba0b
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
5 <title>CSS Test: page-break-before: always</title>
6 <link rel="author" href="mailto:mturnwall@revenution.com" title="Michael Turnwall">
7 <link rel="author" href="http://www.hp.com/" title="Hewlett-Packard Company">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#page-break-props">
9 <link rel="help" href="http://www.w3.org/TR/css3-page/#pg-br-before-after">
10 <meta content="paged" name="flags">
11 <meta content="The 'always' value of the 'page-break-before' property forces a page break before the box." name="assert">
12 <style type="text/css">
14 div.break {
15 page-break-before:always;
18 </style>
19 <script src="../resources/paged-media-test-utils.js"></script>
20 <script>
22 if (window.testRunner)
23 testRunner.dumpAsText();
25 function test()
27 pageNumberForElementShouldBe('test1', 0);
28 pageNumberForElementShouldBe('test2', 1);
29 numberOfPagesShouldBe(2);
32 </script>
33 </head>
34 <body onload="runPrintingTest(test)">
35 <div id="test1">This test should produce two pages of output. This text should be at the top of the first page.</div>
36 <div class="break" id="test2">This text should be at the top of the second and final page.</div>
37 </body>
38 </html>