box-sizing-replaced-003

Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
image
Assertion
All images should be sized at 75px x 75px.

Source

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