summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/positioning/abspos-zero-width-001.xht
blob: 4f8b5d14c17b520fc8c309f401205974d08db48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html PUBLIC "-//W3C//DTD//XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: Absolute positioned elements still affect scrolling mechanism</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-height-property" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#choose-position" />
        <meta name="flags" content="image" />
        <meta name="assert" content="Zero width absolute positioned elements still affects scrolling mechanism even though they are out of flow of the content." />
        <style type="text/css">
            body
            {
                background: url("../support/abspos-zero-width-001.png") no-repeat;
            }
            div
            {
                height: 2000px;
                position: absolute;
                top: 0;
                width: 0;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is a blue line above this text and a green box visible when the page is scrolled to its full extent vertically.</p>
        <div></div>
    </body>
</html>