1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-multi-line-vert-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,71 @@ 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 +<!-- Reference case, using inline-block instead of inline-flex, and with the 1.10 + baseline-aligned items aligned using specific font-size / line-heights, 1.11 + and with unaligned children taken out of baseline-alignment using 1.12 + "float: left". 1.13 +--> 1.14 +<html> 1.15 +<head> 1.16 + <title>CSS Reftest Reference</title> 1.17 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.18 + <meta charset="utf-8"> 1.19 + <style> 1.20 + .flexContainer { 1.21 + display: inline-block; 1.22 + /* Split testcase's 40px width into 20px of padding-left and 20px of 1.23 + width, to set aside space for the testcase's (invisible) second line 1.24 + (which is to the left of the first line, since this is wrap-reverse) 1.25 + */ 1.26 + width: 20px; 1.27 + padding-left: 20px; 1.28 + height: 40px; 1.29 + background: lightblue; 1.30 + } 1.31 + .flexContainer > * { 1.32 + width: 20px; 1.33 + height: 20px; 1.34 + display: inline-block; 1.35 + } 1.36 + 1.37 + .smallFont { 1.38 + font-size: 8px; 1.39 + line-height: 8px; 1.40 + } 1.41 + .medFont { 1.42 + font-size: 12px; 1.43 + line-height: 12px; 1.44 + } 1.45 + .bigFont { 1.46 + font-size: 16px; 1.47 + line-height: 16px; 1.48 + } 1.49 + .unaligned { float: left } 1.50 + </style> 1.51 +</head> 1.52 +<body> 1.53 + a 1.54 + <!-- Flex containers with flex items that have a mix of baselines: --> 1.55 + <div class="flexContainer medFont"> 1.56 + <div class="medFont">b</div 1.57 + ><br><div class="bigFont unaligned">c</div> 1.58 + </div> 1.59 + 1.60 + <div class="flexContainer bigFont"> 1.61 + <div class="bigFont">f</div 1.62 + ><br><div class="smallFont unaligned">g</div> 1.63 + </div> 1.64 + 1.65 + <!-- Flex container with second line baseline-aligned 1.66 + (shouldn't make a difference) --> 1.67 + <div class="flexContainer smallFont"> 1.68 + <div class="smallFont">j</div 1.69 + ><br><div class="bigFont unaligned">k</div> 1.70 + </div> 1.71 + n 1.72 + 1.73 +</body> 1.74 +</html>