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

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial