1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-stretch-vert-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 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 the sizing of a stretched horizontal flex container in a vertical flex container</title> 1.12 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.13 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"> 1.14 + <link rel="match" href="flexbox-align-self-stretch-vert-1-ref.html"> 1.15 + <meta name="assert" content="If a stretched flex item's main size is influenced by its cross size, and the flex container has a definite cross size, then the item's cross size should be resolved early so that it can be used when determining the item's main size"> 1.16 + <meta name="assert" content="http://dev.w3.org/csswg/css-flexbox/issues-cr-2012#issue-23"> 1.17 + <meta charset="utf-8"> 1.18 + <style> 1.19 + div.fixedWidthWrapper { 1.20 + width: 200px; 1.21 + /* Small enough that 3 characters can _easily_ fit in our width */ 1.22 + font-size: 12px; 1.23 + } 1.24 + div.vertContainer { 1.25 + display: flex; 1.26 + flex-direction: column; 1.27 + } 1.28 + div.vertItem { 1.29 + background: red; 1.30 + } 1.31 + div.horizContainer { 1.32 + display: flex; 1.33 + } 1.34 + div.horizItem { 1.35 + flex: 1; 1.36 + background: lime; 1.37 + } 1.38 + </style> 1.39 +</head> 1.40 +<body> 1.41 + <div class="fixedWidthWrapper"> 1.42 + <div class="vertContainer"> 1.43 + <div class="vertItem"> 1.44 + <div class="horizContainer"> 1.45 + <div class="horizItem">A B C</div> 1.46 + <div class="horizItem"></div> 1.47 + </div> 1.48 + </div> 1.49 + </div> 1.50 + </div> 1.51 +</body> 1.52 +</html>