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 applied to absolutely positioned elements</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#floats">
7 <meta name="flags" content="">
8 <meta name="assert" content="Float cannot be applied to absolutely positioned element.">
9 <style type="text/css">
10 *
11 {
12 margin: 0;
13 }
14 div
15 {
16 background: blue;
17 float: right;
18 height: 1in;
19 position: absolute;
20 width: 1in;
21 }
22 p
23 {
24 padding-top: 1.1in;
25 }
26 </style>
27 </head>
28 <body>
29 <div></div>
30 <p>Test passes if the box above is in the top-left corner of the page.</p>
31 </body>
32 </html>