summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/mediaqueries/support/min-width-tables-001-iframe.html
blob: 794c047b0ae29b167166b930e1fbe4fb6e4965b3 (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
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>iframe containing the meat of the test</title>
    <style>
body {
    margin: 0;
    overflow: hidden;
}
/* green div that should cover the red divs */
#green {
    position: absolute;
    left: 0;
    top: 0;
    background-color: green;
    width: 100%;
    height: 600px;
}
.spacer {
    height: 98px;
    width: 20px;
}
.item {
    background-color: red;
    display: block;/* property under test */
    /* border to aid understanding of boundaries between items */
    border-style: solid;
    border-width: 1px;
    border-color: red;/* Note: if you're trying to debug this, use a different color here */
}
/* 100px = 10*(1 + 8 + 1) */
@media (min-width: 100px) {
    #green {
        width: 100px;
        height: 100px;/* = 1 + 98 + 1 */
    }
    .item {
        display: table-cell;/* property and value under test */
    }
}
    </style>
</head>
<body>
    <div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
        <div class="item"><div class="spacer"></div></div>
    </div>
    <div id="green"></div>
</body>
</html>