box-sizing-replaced-002.xht (5493B)
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="https://drafts.csswg.org/css-sizing-3/#box-sizing" /> 8 <link rel="match" href="box-sizing-replaced-002-ref.xht" /> 9 <meta content="image" name="flags"></meta> 10 <meta name="assert" content="All images should be sized at 75px x 75px, with 5px of padding and 5px of blue border around each." /> 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 .with-borderpadding { 24 padding: 5px 5px; 25 border: 5px solid blue; 26 box-sizing: border-box; 27 } 28 29 #img1 { 30 min-width: 80px; 31 max-width: 125px; 32 min-height: 65px; 33 max-height: 140px; 34 } 35 36 #img2 { 37 max-width: 95px; 38 min-height: 80px; 39 } 40 41 #img3 { 42 max-width: 95px; 43 min-height: 95px; 44 } 45 46 #img4 { 47 min-width: 95px; 48 max-height: 120px; 49 } 50 51 #img5 { 52 min-width: 95px; 53 max-height: 95px; 54 } 55 56 #img6 { 57 min-width: 80px; 58 max-height: 95px; 59 } 60 61 #img7 { 62 min-width: 95px; 63 max-height: 95px; 64 } 65 66 #img8 { 67 max-width: 120px; 68 min-height: 95px; 69 } 70 71 #img9 { 72 max-width: 95px; 73 min-height: 95px; 74 } 75 76 #img10 { 77 min-width: 95px; 78 max-width: 170px; 79 max-height: 95px; 80 } 81 82 #img11 { 83 min-width: 45px; 84 max-width: 245px; 85 max-height: 95px; 86 } 87 88 #img12 { 89 max-width: 95px; 90 min-height: 95px; 91 max-height: 170px; 92 } 93 94 #img13 { 95 max-width: 95px; 96 min-height: 45px; 97 max-height: 245px; 98 } 99 100 #img14 { 101 min-width: 70px; 102 max-width: 120px; 103 min-height: 95px; 104 } 105 106 #img15 { 107 min-width: 75px; 108 max-width: 95px; 109 min-height: 95px; 110 } 111 112 #img16 { 113 min-width: 95px; 114 min-height: 70px; 115 max-height: 120px; 116 } 117 118 #img17 { 119 min-width: 95px; 120 min-height: 75px; 121 max-height: 95px; 122 } 123 124 #img18 { 125 min-width: 95px; 126 max-height: 95px; 127 } 128 129 #img19 { 130 max-width: 95px; 131 min-height: 95px; 132 } 133 </style> 134 </head> 135 <body> 136 <div>All rectangles should be the same size.</div> 137 <p><img id="img0" class="with-borderpadding" src="support/replaced-min-max.png" alt="FAIL" title="Test 0"></img></p> 138 <p><img id="img1" class="with-borderpadding" title="Test 1" alt="FAIL" src="support/replaced-min-max-1.png"></img></p> 139 <p><img id="img2" class="with-borderpadding" title="Test 2" alt="FAIL" src="support/replaced-min-max-2.png"></img></p> 140 <p><img id="img3" class="with-borderpadding" title="Test 3" alt="FAIL" src="support/replaced-min-max-3.png"></img></p> 141 <p><img id="img4" class="with-borderpadding" title="Test 4" alt="FAIL" src="support/replaced-min-max-4.png"></img></p> 142 <p><img id="img5" class="with-borderpadding" title="Test 5" alt="FAIL" src="support/replaced-min-max-5.png"></img></p> 143 <p><img id="img6" class="with-borderpadding" title="Test 6" alt="FAIL" src="support/replaced-min-max-6.png"></img></p> 144 <p><img id="img7" class="with-borderpadding" title="Test 7" alt="FAIL" src="support/replaced-min-max-7.png"></img></p> 145 <p><img id="img8" class="with-borderpadding" title="Test 8" alt="FAIL" src="support/replaced-min-max-8.png"></img></p> 146 <p><img id="img9" class="with-borderpadding" title="Test 9" alt="FAIL" src="support/replaced-min-max-9.png"></img></p> 147 <p><img id="img10" class="with-borderpadding" title="Test 10" alt="FAIL" src="support/replaced-min-max-10.png"></img></p> 148 <p><img id="img11" class="with-borderpadding" title="Test 11" alt="FAIL" src="support/replaced-min-max-11.png"></img></p> 149 <p><img id="img12" class="with-borderpadding" title="Test 12" alt="FAIL" src="support/replaced-min-max-12.png"></img></p> 150 <p><img id="img13" class="with-borderpadding" title="Test 13" alt="FAIL" src="support/replaced-min-max-13.png"></img></p> 151 <p><img id="img14" class="with-borderpadding" title="Test 14" alt="FAIL" src="support/replaced-min-max-14.png"></img></p> 152 <p><img id="img15" class="with-borderpadding" title="Test 15" alt="FAIL" src="support/replaced-min-max-15.png"></img></p> 153 <p><img id="img16" class="with-borderpadding" title="Test 16" alt="FAIL" src="support/replaced-min-max-16.png"></img></p> 154 <p><img id="img17" class="with-borderpadding" title="Test 17" alt="FAIL" src="support/replaced-min-max-17.png"></img></p> 155 <p><img id="img18" class="with-borderpadding" title="Test 18" alt="FAIL" src="support/replaced-min-max-18.png"></img></p> 156 <p><img id="img19" class="with-borderpadding" title="Test 19" alt="FAIL" src="support/replaced-min-max-19.png"></img></p> 157 </body> 158 </html>