Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>CSS Test: Box Sizing - Padding-Box with min/max width/height</title>
5 <link rel="author" title="Scott Johnson" href="mailto:sjohnson@mozilla.com" />
6 <link rel="help" href="http://www.w3.org/TR/css3-ui/#box-sizing" />
7 <meta name="assert" content="box-sizing: padding-box should make the element's (calc) width be the distance from the left padding edge to the right padding edge and the height be the distance from the top padding edge to the bottom padding edge."/>
8 <style type="text/css"><![CDATA[
9 .container {
10 min-width: 500px;
11 max-width: 700px;
12 min-height: 70px;
13 max-height: 90px;
14 border: 2px solid black;
15 position: absolute;
16 left: 25px;
17 top: 25px;
18 background-color: red;
19 }
21 .box-sized {
22 box-sizing: padding-box;
23 min-width: 250px;
24 max-width: 350px;
25 min-height: 70px;
26 max-height: 90px;
27 z-index: 1;
28 float: left;
29 padding: 5px 5px;
30 }
32 #one {
33 background-color: green;
34 }
36 #two {
37 background-color: blue;
38 }
39 ]]></style>
40 </head>
41 <body>
42 The two divs should be side-by-side, not one on top of another. No red should be visible.
43 <br />
44 <div class="container">
45 <div class="box-sized" id="one">LEFT HALF</div>
46 <div class="box-sized" id="two">RIGHT HALF</div>
47 </div>
48 </body>
49 </html>