OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Basic User Interface Test: auto sizing rules with box-sizing:border-b
ox, intrinsic width and height, h < min-height</title> |
| 4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> |
| 5 <link rel="help" href="https://drafts.csswg.org/css-ui-3/#box-sizing"> |
| 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-w
idth"> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-h
eight"> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths"> |
| 9 <meta name="flags" content="svg"> |
| 10 <link rel="match" href="reference/box-sizing-020-ref.html"> |
| 11 <meta name="assert" content="Test checks that the CSS2.1 rules for auto width an
d height |
| 12 on replaced elements with intrinsic width and heigh
t |
| 13 with the h < min-height constraint violation |
| 14 are properly interpreted when box-sizing is border-
box."> |
| 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 display: inline-block; |
| 27 margin-bottom: 30px; /*for alignement*/ |
| 28 width: 130px; |
| 29 height: 130px; |
| 30 background: green; |
| 31 } |
| 32 |
| 33 </style> |
| 34 <body> |
| 35 <p>Test passes if there are 2 <strong>filled green squares</strong> and they a
re the <strong>same size</strong>.</p> |
| 36 <div id=ref></div> |
| 37 <img src="support/w100_h100.svg"> |
| 38 </body> |
OLD | NEW |