summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/flex-content-sized-columns-resize-expected.html
blob: f9117612c402a8a6a139036e7e4b0486171acc74 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        #firstColumnFloat {
            width: 50%;
            background-color: blue;
        }

        #secondColumnFloat {
            float: right;
            width: 50%;
            background-color: lime;
        }

        #oneColumnRegular {
            background-color: blue;
        }
    </style>
    <script>
        function runTest() {
            if (window.testRunner) {
                testRunner.useUnfortunateSynchronousResizeMode();
                window.resizeTo(600, 600);
            }
        }
    </script>
</head>
<body onLoad="runTest();">
    <h1>Description</h1>
    <p>Grid flex and content sized columns width should be updated properly when you resize the window (you should not see the grid background in grey color).</p>
    <h1>Grid 2 flex columns</h1>
    <div>
        <div id="secondColumnFloat">second column</div>
        <div id="firstColumnFloat">first column</div>
    </div>
    <h1>Grid 1 auto column</h1>
    <div>
        <div id="oneColumnRegular">
            one column one column one column one column one column one column one column one column
            one column one column one column one column one column one column one column one column
            one column one column one column one column one column one column one column one column
            one column one column one column one column one column one column one column one column
        </div>
    </div>
</body>
</html>