summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/css2.1/20110323/float-non-replaced-width-006.htm
blob: 6d4d624ea33e96ed610aa722e502ad849e548a74 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>CSS Test: Floating non-replaced elements with 'auto' width</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
        <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#float-width">
        <meta name="flags" content="ahem">
        <meta name="assert" content="If 'width' computes to 'auto' then the used value of 'width' is 'shrink-to-fit'.">
        <style type="text/css">
            div
            {
                background: red;
                color: green;
                float: left;
                font: 1in/1em Ahem;
                width: auto;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is no red visible on the page.</p>
        <div>X</div>
    </body>
</html>