1 <!DOCTYPE html>
2 <html><head><meta charset="utf-8">
3 <title>CSS Basic User Interface Test: auto sizing rules with box-sizing:border-box, intrinsic height, h < min-height</title>
4 <link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal">
5 <link href="https://drafts.csswg.org/css-ui-3/#box-sizing" rel="help">
6 <link href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" rel="help">
7 <link href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" rel="help">
8 <link href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" rel="help">
9 <meta content="svg" name="flags">
10 <link href="reference/box-sizing-023-ref.htm" rel="match">
11 <meta content="Test checks that the CSS2.1 rules for auto width and height
12 on replaced elements with intrinsic height
13 with the h < min-height constraint violation
14 are properly interpreted when box-sizing is border-box." name="assert">
15 <style>
16 img {
17 box-sizing: border-box;
18 width: auto;
19 height: auto;
20 background: white;
21 padding-bottom: 30px;
22 min-height: 160px;
23 }
24
25 #ref {
26 height: 130px;
27 margin-bottom: 10px;
28 width: 300px;
29 background: green;
30 }
31
32 </style>
33 </head><body>
34 <p>Test passes if there are 2 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
35 <div id="ref"></div>
36 <img src="support/h100.svg">
37
38 </body></html>