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

mercurial