summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css2.1/20110323/inline-non-replaced-width-002.htm
blob: 1dd9c15b1969d38e60d87ee7b6d0a949caebcd23 (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
31
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>CSS Test: Inline non-replaced elements with 'auto' value for 'left', 'right', and 'margin-right'</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-width">
        <meta name="flags" content="ahem">
        <meta name="assert" content="Computed value of 'auto' for 'left', 'right', and 'margin-right' becomes a used value of '0'.">
        <style type="text/css">
            div
            {
                border: solid black;
                height: 2in;
                width: 2in;
            }
            span
            {
                color: blue;
                font: 1in/1em Ahem;
                left: auto;
                margin-right: auto;
                position: relative;
                right: auto;
            }
        </style>
    </head>
    <body>
        <p>Test passes if the blue box below is in the upper-left corner of the black box.</p>
        <div>
            <span>X</span>
        </div>
    </body>
</html>