summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css2.1/t1001-abs-pos-cb-05-b.html
blob: 02fe7f559ece37df2b897233fed3c3ffe7eeda42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>CSS 2.1 Test Suite: Containing block for absolute positioning</title>
    <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details">
    <style type="text/css">
      html { margin: 0; padding: 0; width: 100%; height: 100%; position: relative; }
      body { background: red; margin: 100px 20%; }
      div { background: white; color: green; position: absolute; top: 0; right: 0; width: 100%; height: 100%; }
    </style>
  </head>
  <body>
    <div>
      There should be no red on this page.
    </div>
  </body>
</html>