Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / css2.1 / page-break-before-001.html
blobdcbc73dee7269022e8a40166fee0304dfea4efeb
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 :auto</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 <meta content="paged" name="flags">
10 <meta content="The 'auto' value of the 'page-break-before' property neither forces nor forbids a page break before the box." name="assert">
11 <style type="text/css">
13 div.noBreak {
14 page-break-before:always;
15 page-break-before:auto;
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('test', 0);
28 numberOfPagesShouldBe(1);
31 </script>
32 </head>
33 <body onload="runPrintingTest(test)">
34 <div>There must <strong>not</strong> be a page break after this line of text.</div>
35 <div class="noBreak" id="test">This test should produce only one page of output.</div>
36 </body>
37 </html>