layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003-ref.xht

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     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 Reference: Box Sizing - Content-Box with min/max width/height</title>
     5   <link rel="author" title="Scott Johnson" href="mailto:sjohnson@mozilla.com" />
     6   <style type="text/css"><![CDATA[
     7     .container {
     8       min-width: 500px;
     9       max-width: 700px;
    10       height: 90px;
    11       border: 2px solid black;
    12       position: absolute;
    13       left: 25px;
    14       top: 25px;
    15       background-color: red;
    16     }
    18     .box-sized {
    19       min-width: 250px;
    20       max-width: 350px;
    21       height: 100%;
    22       z-index: 1;
    23       float: left;
    24     }
    26     #one {
    27       background-color: green;
    28     }
    30     #two {
    31       background-color: blue;
    32     }
    33   ]]></style>
    34  </head>
    35  <body>
    36    The two divs should be side-by-side, not one on top of another. No red should be visible.
    37    <br />
    38    <div class="container">
    39      <div class="box-sized" id="one">LEFT HALF</div>
    40      <div class="box-sized" id="two">RIGHT HALF</div>
    41    </div>
    42  </body>
    43 </html>

mercurial