Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / css2.1 / page-break-after-001.html
blob24586b378d58d9a12a1f88f4acf085955358a7ba
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-after: 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 'always' value of the 'page-break-after' property forces a page break after the box." name="assert">
11 <style type="text/css">
12 div.noBreak {
13 page-break-after:always;
14 page-break-after:auto;
16 </style>
17 <script src="../resources/paged-media-test-utils.js"></script>
18 <script>
20 if (window.testRunner)
21 testRunner.dumpAsText();
23 function test()
25 pageNumberForElementShouldBe('test', 0);
26 numberOfPagesShouldBe(1);
29 </script>
30 </head>
31 <body onload="runPrintingTest(test)">
32 <div class="noBreak">There must <strong>not</strong> be a page break after this line of text.</div>
33 <div id="test">This test should produce only one page of output.</div>
34 </body>
35 </html>