1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003-ref.xht Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1.5 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.6 + <head> 1.7 + <title>CSS Reference: Box Sizing - Border-Box with specified width/height</title> 1.8 + <link rel="author" title="Scott Johnson" href="mailto:sjohnson@mozilla.com" /> 1.9 + <style type="text/css"><![CDATA[ 1.10 + .container { 1.11 + width: 300px; 1.12 + height: 400px; 1.13 + border: 2px solid black; 1.14 + position: absolute; 1.15 + left: 25px; 1.16 + top: 25px; 1.17 + background-color: red; 1.18 + } 1.19 + 1.20 + .box-sized { 1.21 + width: 120px; 1.22 + height: 340px; 1.23 + z-index: 1; 1.24 + float: left; 1.25 + border: 5px solid black; 1.26 + padding: 25px 10px; 1.27 + } 1.28 + 1.29 + #one { 1.30 + background-color: green; 1.31 + } 1.32 + 1.33 + #two { 1.34 + background-color: blue; 1.35 + } 1.36 + ]]></style> 1.37 + </head> 1.38 + <body> 1.39 + The two divs should be side-by-side, not one on top of another. No red should be visible. 1.40 + <br /> 1.41 + <div class="container"> 1.42 + <div class="box-sized" id="one">LEFT HALF</div> 1.43 + <div class="box-sized" id="two">RIGHT HALF</div> 1.44 + </div> 1.45 + </body> 1.46 +</html>