summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/non-replaced-elements/the-fieldset-element-0/min-width-not-important.html
blob: cabbaf20e6563decd428c6fddae09e93b4dcc172 (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
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Rendering requirements test (suggested default rendering): fieldset min-width is overridable</title>
    <link rel="author" title="Chris Rebert" href="http://chrisrebert.com">
    <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements">
    <link rel="help" href="http://drafts.csswg.org/css2/visudet.html#min-max-widths">
    <link rel="help" href="http://drafts.csswg.org/css-sizing/#width-height-keywords">
    <link rel="match" href="ref.html">
    <meta name="flags" content="">
    <meta name="assert" content="fieldset's default min-width should be overridable since it's not !important and not spec'd to be non-overridable">
    <style>
body {
    margin: 10px;
}
#cover {
    background-color: green;
    position: absolute;
    left: 10px;
    top: 10px;
    height: 100px;
    width: 100px;
    z-index: 2;
}
fieldset {
    min-width: 0;/* property under test */
    /* zero these out so it renders more like a div element */
    border: none;
    margin: 0;
    padding: 0;
}
.outer {
    width: 100px;
}
.inner {
    background-color: red;
    color: red;
    height: 100px;
    overflow: scroll;
    white-space: nowrap;
}
    </style>
</head>
<body>
    <div class="outer">
        <fieldset>
            <div class="inner">a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a</div>
        </fieldset>
    </div>
    <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
    <div id="cover"></div>
</body>
</html>