1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 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 +<!-- In this reference case, we get each container to be sized the same as 1.10 + in the testcase, without any visible baseline alignemnt, by using some 1.11 + hidden flex items. 1.12 +--> 1.13 +<html> 1.14 +<head> 1.15 + <title>CSS Reftest Reference</title> 1.16 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.17 + <meta charset="utf-8"> 1.18 + <style> 1.19 + .flexContainer { 1.20 + display: flex; 1.21 + width: 50px; 1.22 + background: yellow; 1.23 + border: 1px dotted black; 1.24 + margin: 5px; 1.25 + align-items: flex-start; 1.26 + } 1.27 + .hiddenItemForSizing { 1.28 + width: 0; 1.29 + color: transparent; 1.30 + align-self: baseline; 1.31 + } 1.32 + .largeFont { 1.33 + font-size: 20px; 1.34 + background: lightblue; 1.35 + /* Our flex items get padding on opposite sides (top/bottom) so that they 1.36 + produce a large combined height when baseline-aligned: */ 1.37 + padding-top: 5px; 1.38 + } 1.39 + .smallFont { 1.40 + font-size: 10px; 1.41 + background: pink; 1.42 + /* Our flex items get padding on opposite sides (top/bottom) so that they 1.43 + produce a large combined height when baseline-aligned: */ 1.44 + padding-bottom: 20px; 1.45 + } 1.46 + </style> 1.47 +</head> 1.48 +<body> 1.49 + <div class="flexContainer"> 1.50 + <div class="largeFont">a</div> 1.51 + <!-- Hidden flex items used to determine container's cross size, 1.52 + based on their baseline-aligned combined cross size: --> 1.53 + <div class="largeFont hiddenItemForSizing">a</div> 1.54 + <div class="smallFont hiddenItemForSizing">b</div> 1.55 + </div> 1.56 + 1.57 + <div class="flexContainer"> 1.58 + <div class="smallFont">b</div> 1.59 + <!-- Hidden flex items used to determine container's cross size, 1.60 + based on their baseline-aligned combined cross size: --> 1.61 + <div class="largeFont hiddenItemForSizing">a</div> 1.62 + <div class="smallFont hiddenItemForSizing">b</div> 1.63 + </div> 1.64 +</body> 1.65 +</html>