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