|
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: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing</title> |
|
5 <link href="http://fantasai.inkedblade.net/contact" title="Elika J. Etemad" rel="author"></link> |
|
6 <link href="mailto:sjohnson@mozilla.com" title="Scott Johnson" rel="author"></link> |
|
7 <link rel="help" href="http://www.w3.org/TR/css3-ui/#box-sizing" /> |
|
8 <meta content="image" name="flags"></meta> |
|
9 <meta name="assert" content="All images should be sized at 75px x 75px, with 5px of padding and 5px of blue border around each." /> |
|
10 <!-- |
|
11 This test is derived from replaced-min-max-001, part of the W3C CSS 2.1 |
|
12 test suite. |
|
13 --> |
|
14 <style type="text/css"> |
|
15 p { |
|
16 display: inline-block; |
|
17 background-color: white; |
|
18 padding: 0px 0px; |
|
19 margin: 0px 0px; |
|
20 } |
|
21 |
|
22 .with-borderpadding { |
|
23 padding: 5px 5px; |
|
24 border: 5px solid blue; |
|
25 box-sizing: border-box; |
|
26 } |
|
27 |
|
28 #img1 { |
|
29 min-width: 80px; |
|
30 max-width: 125px; |
|
31 min-height: 65px; |
|
32 max-height: 140px; |
|
33 } |
|
34 |
|
35 #img2 { |
|
36 max-width: 95px; |
|
37 min-height: 80px; |
|
38 } |
|
39 |
|
40 #img3 { |
|
41 max-width: 95px; |
|
42 min-height: 95px; |
|
43 } |
|
44 |
|
45 #img4 { |
|
46 min-width: 95px; |
|
47 max-height: 120px; |
|
48 } |
|
49 |
|
50 #img5 { |
|
51 min-width: 95px; |
|
52 max-height: 95px; |
|
53 } |
|
54 |
|
55 #img6 { |
|
56 min-width: 80px; |
|
57 max-height: 95px; |
|
58 } |
|
59 |
|
60 #img7 { |
|
61 min-width: 95px; |
|
62 max-height: 95px; |
|
63 } |
|
64 |
|
65 #img8 { |
|
66 max-width: 120px; |
|
67 min-height: 95px; |
|
68 } |
|
69 |
|
70 #img9 { |
|
71 max-width: 95px; |
|
72 min-height: 95px; |
|
73 } |
|
74 |
|
75 #img10 { |
|
76 min-width: 95px; |
|
77 max-width: 170px; |
|
78 max-height: 95px; |
|
79 } |
|
80 |
|
81 #img11 { |
|
82 min-width: 45px; |
|
83 max-width: 245px; |
|
84 max-height: 95px; |
|
85 } |
|
86 |
|
87 #img12 { |
|
88 max-width: 95px; |
|
89 min-height: 95px; |
|
90 max-height: 170px; |
|
91 } |
|
92 |
|
93 #img13 { |
|
94 max-width: 95px; |
|
95 min-height: 45px; |
|
96 max-height: 245px; |
|
97 } |
|
98 |
|
99 #img14 { |
|
100 min-width: 70px; |
|
101 max-width: 120px; |
|
102 min-height: 95px; |
|
103 } |
|
104 |
|
105 #img15 { |
|
106 min-width: 75px; |
|
107 max-width: 95px; |
|
108 min-height: 95px; |
|
109 } |
|
110 |
|
111 #img16 { |
|
112 min-width: 95px; |
|
113 min-height: 70px; |
|
114 max-height: 120px; |
|
115 } |
|
116 |
|
117 #img17 { |
|
118 min-width: 95px; |
|
119 min-height: 75px; |
|
120 max-height: 95px; |
|
121 } |
|
122 |
|
123 #img18 { |
|
124 min-width: 95px; |
|
125 max-height: 95px; |
|
126 } |
|
127 |
|
128 #img19 { |
|
129 max-width: 95px; |
|
130 min-height: 95px; |
|
131 } |
|
132 </style> |
|
133 </head> |
|
134 <body> |
|
135 <div>All rectangles should be the same size.</div> |
|
136 <p><img id="img0" class="with-borderpadding" src="support/replaced-min-max.png" alt="FAIL" title="Test 0"></img></p> |
|
137 <p><img id="img1" class="with-borderpadding" title="Test 1" alt="FAIL" src="support/replaced-min-max-1.png"></img></p> |
|
138 <p><img id="img2" class="with-borderpadding" title="Test 2" alt="FAIL" src="support/replaced-min-max-2.png"></img></p> |
|
139 <p><img id="img3" class="with-borderpadding" title="Test 3" alt="FAIL" src="support/replaced-min-max-3.png"></img></p> |
|
140 <p><img id="img4" class="with-borderpadding" title="Test 4" alt="FAIL" src="support/replaced-min-max-4.png"></img></p> |
|
141 <p><img id="img5" class="with-borderpadding" title="Test 5" alt="FAIL" src="support/replaced-min-max-5.png"></img></p> |
|
142 <p><img id="img6" class="with-borderpadding" title="Test 6" alt="FAIL" src="support/replaced-min-max-6.png"></img></p> |
|
143 <p><img id="img7" class="with-borderpadding" title="Test 7" alt="FAIL" src="support/replaced-min-max-7.png"></img></p> |
|
144 <p><img id="img8" class="with-borderpadding" title="Test 8" alt="FAIL" src="support/replaced-min-max-8.png"></img></p> |
|
145 <p><img id="img9" class="with-borderpadding" title="Test 9" alt="FAIL" src="support/replaced-min-max-9.png"></img></p> |
|
146 <p><img id="img10" class="with-borderpadding" title="Test 10" alt="FAIL" src="support/replaced-min-max-10.png"></img></p> |
|
147 <p><img id="img11" class="with-borderpadding" title="Test 11" alt="FAIL" src="support/replaced-min-max-11.png"></img></p> |
|
148 <p><img id="img12" class="with-borderpadding" title="Test 12" alt="FAIL" src="support/replaced-min-max-12.png"></img></p> |
|
149 <p><img id="img13" class="with-borderpadding" title="Test 13" alt="FAIL" src="support/replaced-min-max-13.png"></img></p> |
|
150 <p><img id="img14" class="with-borderpadding" title="Test 14" alt="FAIL" src="support/replaced-min-max-14.png"></img></p> |
|
151 <p><img id="img15" class="with-borderpadding" title="Test 15" alt="FAIL" src="support/replaced-min-max-15.png"></img></p> |
|
152 <p><img id="img16" class="with-borderpadding" title="Test 16" alt="FAIL" src="support/replaced-min-max-16.png"></img></p> |
|
153 <p><img id="img17" class="with-borderpadding" title="Test 17" alt="FAIL" src="support/replaced-min-max-17.png"></img></p> |
|
154 <p><img id="img18" class="with-borderpadding" title="Test 18" alt="FAIL" src="support/replaced-min-max-18.png"></img></p> |
|
155 <p><img id="img19" class="with-borderpadding" title="Test 19" alt="FAIL" src="support/replaced-min-max-19.png"></img></p> |
|
156 </body> |
|
157 </html> |