abspos-overflow-005

Absolutely positioned children of overflow: hidden

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3  <head>
 4   <title>CSS Test: Absolutely positioned children of overflow: hidden</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/overflow/005.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow-clipping">
 8   <style type="text/css">
 9    html, body { margin: 0; border: 0; padding: 0; }
10    .control { color: yellow; background: red; width: 10em; margin: 0 0 0 auto; }
11    .overflow { width: 8em; height: 8em; overflow: hidden; }
12    .positioned { color: white; background: green; position: absolute; top: 0; right: 0; width: 10em; }
13   </style>
14  </head>
15  <body>
16   <div class="control">FAIL</div>
17   <div class="overflow">
18    <div class="positioned">PASS</div>
19   </div>
20  </body>
21 </html>