position-fixed-007

Float is computed to 'none' when element is fixed positioned

WeasyPrint

This browser

Assertion
Float is computed to 'none' when 'position: fixed' is applied.

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: Float is computed to 'none' when element is fixed positioned</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#absolute-positioning">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Float is computed to 'none' when 'position: fixed' is applied.">
 9         <style type="text/css">
10             p
11             {
12                 margin-top: 1in;
13             }
14             #div1
15             {
16                 position: relative;
17             }
18             #div2, #div3
19             {
20                 height: 1in;
21                 width: 1in;
22             }
23             #div2
24             {
25                 background: black;
26                 float: right;
27                 position: fixed;
28                 top: 0;
29                 left: 0;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if there is a box in the upper-left corner of the page.</p>
35         <div id="div1">
36             <div id="div2"></div>
37         </div>
38     </body>
39 </html>