overflow-print-001

Overflow 'scroll' and printing

WeasyPrint

This browser

Flags
may, paged
Assertion
The 'overflow' property set to 'scroll' acts like 'visible' when element is printed.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Overflow 'scroll' and printing</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
 7         <meta name="flags" content="may paged">
 8         <meta name="assert" content="The 'overflow' property set to 'scroll' acts like 'visible' when element is printed.">
 9         <style type="text/css">
10             #div1
11             {
12                 height: 30px;
13                 overflow: scroll;
14                 width: 45px;
15             }
16         </style>
17     </head>
18     <body>
19         <p>PREREQUISITE: Switch to print preview or a paged media view of the page.</p>
20         <p>Test passes if the words "Filler Text" below are only partially visible or are completely visible.</p>
21         <div id="div1">
22             <div>Filler Text Filler Text</div>
23         </div>
24     </body>
25 </html>