layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001.xht

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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

mercurial