1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-box-sizing-on-items-vert-1a.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,61 @@ 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 vertical 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 + flex-direction: column; 1.18 + width: 30px; 1.19 + height: 100px; 1.20 + border: 1px solid black; 1.21 + float: left; 1.22 + margin: 2px; 1.23 + } 1.24 + .container > * { 1.25 + box-sizing: border-box; 1.26 + } 1.27 + .itemA { 1.28 + height: 30px; 1.29 + background: purple; 1.30 + border: 4px solid indigo; 1.31 + } 1.32 + .itemB { 1.33 + height: 50px; 1.34 + background: teal; 1.35 + border: 5px solid lightblue; 1.36 + } 1.37 + </style> 1.38 +</head> 1.39 +<body> 1.40 + <!-- FIRST ROW --> 1.41 + <!-- 1 inflexible item --> 1.42 + <div class="container"> 1.43 + <div class="itemA"></div> 1.44 + </div> 1.45 + <!-- 1 flexible item --> 1.46 + <div class="container"> 1.47 + <div class="itemA" style="flex-grow: 1"></div> 1.48 + </div> 1.49 + 1.50 + <div style="clear: both"></div> 1.51 + 1.52 + <!-- SECOND ROW --> 1.53 + <!-- 2 inflexible items --> 1.54 + <div class="container"> 1.55 + <div class="itemA"></div> 1.56 + <div class="itemB"></div> 1.57 + </div> 1.58 + <!-- 2 flexible items --> 1.59 + <div class="container"> 1.60 + <div class="itemA" style="flex-grow: 1"></div> 1.61 + <div class="itemB" style="flex-grow: 1"></div> 1.62 + </div> 1.63 +</body> 1.64 +</html>