1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-box-sizing-on-items-horiz-1b.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,60 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<html> 1.10 +<head> 1.11 + <title>CSS Test: Testing a horizontal flex container with box-sizing:border-box on its flex items</title> 1.12 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.13 + <meta charset="utf-8"> 1.14 + <style> 1.15 + .container { 1.16 + display: flex; 1.17 + width: 100px; 1.18 + height: 30px; 1.19 + border: 1px solid black; 1.20 + float: left; 1.21 + margin: 2px; 1.22 + } 1.23 + .container > * { 1.24 + box-sizing: border-box; 1.25 + } 1.26 + .itemA { 1.27 + flex-basis: 30px; 1.28 + background: purple; 1.29 + border: 4px solid indigo; 1.30 + } 1.31 + .itemB { 1.32 + flex-basis: 50px; 1.33 + background: teal; 1.34 + border: 5px solid lightblue; 1.35 + } 1.36 + </style> 1.37 +</head> 1.38 +<body> 1.39 + <!-- FIRST ROW --> 1.40 + <!-- 1 inflexible item --> 1.41 + <div class="container"> 1.42 + <div class="itemA"></div> 1.43 + </div> 1.44 + <!-- 1 flexible item --> 1.45 + <div class="container"> 1.46 + <div class="itemA" style="flex-grow: 1"></div> 1.47 + </div> 1.48 + 1.49 + <div style="clear: both"></div> 1.50 + 1.51 + <!-- SECOND ROW --> 1.52 + <!-- 2 inflexible items --> 1.53 + <div class="container"> 1.54 + <div class="itemA"></div> 1.55 + <div class="itemB"></div> 1.56 + </div> 1.57 + <!-- 2 flexible items --> 1.58 + <div class="container"> 1.59 + <div class="itemA" style="flex-grow: 1"></div> 1.60 + <div class="itemB" style="flex-grow: 1"></div> 1.61 + </div> 1.62 +</body> 1.63 +</html>