blob: 66f49bb68de0815be934fcaf3688d0990573e547 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>CSS Test: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing</title>
<link href="http://fantasai.inkedblade.net/contact" title="Elika J. Etemad" rel="author"></link>
<link href="mailto:sjohnson@mozilla.com" title="Scott Johnson" rel="author"></link>
<link rel="help" href="http://www.w3.org/TR/css3-ui/#box-sizing" />
<link rel="match" href="box-sizing-replaced-001-ref.xht" />
<meta content="image" name="flags"></meta>
<meta name="assert" content="All images should be sized at 75px x 75px, with 5px of padding around each." />
<!--
This test is derived from replaced-min-max-001, part of the W3C CSS 2.1
test suite.
-->
<style type="text/css">
p {
display: inline-block;
background-color: white;
padding: 0px 0px;
margin: 0px 0px;
}
.with-padding {
padding: 5px 5px;
box-sizing: border-box;
}
#img1 {
min-width: 70px;
max-width: 115px;
min-height: 55px;
max-height: 130px;
}
#img2 {
max-width: 85px;
min-height: 70px;
}
#img3 {
max-width: 85px;
min-height: 85px;
}
#img4 {
min-width: 85px;
max-height: 110px;
}
#img5 {
min-width: 85px;
max-height: 85px;
}
#img6 {
min-width: 70px;
max-height: 85px;
}
#img7 {
min-width: 85px;
max-height: 85px;
}
#img8 {
max-width: 110px;
min-height: 85px;
}
#img9 {
max-width: 85px;
min-height: 85px;
}
#img10 {
min-width: 85px;
max-width: 160px;
max-height: 85px;
}
#img11 {
min-width: 35px;
max-width: 235px;
max-height: 85px;
}
#img12 {
max-width: 85px;
min-height: 85px;
max-height: 160px;
}
#img13 {
max-width: 85px;
min-height: 35px;
max-height: 235px;
}
#img14 {
min-width: 60px;
max-width: 110px;
min-height: 85px;
}
#img15 {
min-width: 65px;
max-width: 85px;
min-height: 85px;
}
#img16 {
min-width: 85px;
min-height: 60px;
max-height: 110px;
}
#img17 {
min-width: 85px;
min-height: 65px;
max-height: 85px;
}
#img18 {
min-width: 85px;
max-height: 85px;
}
#img19 {
max-width: 85px;
min-height: 85px;
}
</style>
</head>
<script>
/* This test is a copy of the original w3c-submitted test at
* w3c-css/submitted/ui3/box-sizing-replaced-001.xht.
* We need this copy so that we can use non-standard MozReftestInvalidate here
* without hindering the w3c testsuite.
* Without MozReftestInvalidate, for img5 the right 1/3rd of the element
* simply isn't painted.
* This copy can be removed (along with the fuzzy annotation in the original
* test) when we've fixed the underlying issue i.e. Bug 1316772.
*/
window.addEventListener("MozReftestInvalidate", endTest);
function endTest() {
document.documentElement.removeAttribute("class");
}
</script>
<body>
<div>All rectangles should be the same size.</div>
<p><img id="img0" class="with-padding" src="support/replaced-min-max.png" alt="FAIL" title="Test 0"></img></p>
<p><img id="img1" class="with-padding" title="Test 1" alt="FAIL" src="support/replaced-min-max-1.png"></img></p>
<p><img id="img2" class="with-padding" title="Test 2" alt="FAIL" src="support/replaced-min-max-2.png"></img></p>
<p><img id="img3" class="with-padding" title="Test 3" alt="FAIL" src="support/replaced-min-max-3.png"></img></p>
<p><img id="img4" class="with-padding" title="Test 4" alt="FAIL" src="support/replaced-min-max-4.png"></img></p>
<p><img id="img5" class="with-padding" title="Test 5" alt="FAIL" src="support/replaced-min-max-5.png"></img></p>
<p><img id="img6" class="with-padding" title="Test 6" alt="FAIL" src="support/replaced-min-max-6.png"></img></p>
<p><img id="img7" class="with-padding" title="Test 7" alt="FAIL" src="support/replaced-min-max-7.png"></img></p>
<p><img id="img8" class="with-padding" title="Test 8" alt="FAIL" src="support/replaced-min-max-8.png"></img></p>
<p><img id="img9" class="with-padding" title="Test 9" alt="FAIL" src="support/replaced-min-max-9.png"></img></p>
<p><img id="img10" class="with-padding" title="Test 10" alt="FAIL" src="support/replaced-min-max-10.png"></img></p>
<p><img id="img11" class="with-padding" title="Test 11" alt="FAIL" src="support/replaced-min-max-11.png"></img></p>
<p><img id="img12" class="with-padding" title="Test 12" alt="FAIL" src="support/replaced-min-max-12.png"></img></p>
<p><img id="img13" class="with-padding" title="Test 13" alt="FAIL" src="support/replaced-min-max-13.png"></img></p>
<p><img id="img14" class="with-padding" title="Test 14" alt="FAIL" src="support/replaced-min-max-14.png"></img></p>
<p><img id="img15" class="with-padding" title="Test 15" alt="FAIL" src="support/replaced-min-max-15.png"></img></p>
<p><img id="img16" class="with-padding" title="Test 16" alt="FAIL" src="support/replaced-min-max-16.png"></img></p>
<p><img id="img17" class="with-padding" title="Test 17" alt="FAIL" src="support/replaced-min-max-17.png"></img></p>
<p><img id="img18" class="with-padding" title="Test 18" alt="FAIL" src="support/replaced-min-max-18.png"></img></p>
<p><img id="img19" class="with-padding" title="Test 19" alt="FAIL" src="support/replaced-min-max-19.png"></img></p>
</body>
</html>
|