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-horiz-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 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 + "vertical-align:top". 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 + width: 40px; 1.23 + /* Split testcase's 40px height into 20px of padding-top and 20px of 1.24 + height, to set aside space for the testcase's (invisible) second line 1.25 + (which is above the first line, since this is wrap-reverse) */ 1.26 + height: 20px; 1.27 + padding-top: 20px; 1.28 + background: lightblue; 1.29 + } 1.30 + .flexContainer > * { 1.31 + width: 20px; 1.32 + display: inline-block; 1.33 + } 1.34 + 1.35 + .smallFont { 1.36 + font-size: 8px; 1.37 + line-height: 8px; 1.38 + } 1.39 + .medFont { 1.40 + font-size: 12px; 1.41 + line-height: 12px; 1.42 + } 1.43 + .bigFont { 1.44 + font-size: 16px; 1.45 + line-height: 16px; 1.46 + } 1.47 + .unaligned { vertical-align: top } 1.48 + </style> 1.49 +</head> 1.50 +<body> 1.51 + a 1.52 + <!-- Flex containers with flex items that have a mix of baselines: --> 1.53 + <div class="flexContainer medFont"> 1.54 + <div class="medFont">b</div 1.55 + ><div class="bigFont unaligned">c</div> 1.56 + </div> 1.57 + 1.58 + <div class="flexContainer bigFont"> 1.59 + <div class="bigFont">f</div 1.60 + ><div class="smallFont unaligned">g</div> 1.61 + </div> 1.62 + 1.63 + <!-- Flex container with second line baseline-aligned 1.64 + (shouldn't make a difference) --> 1.65 + <div class="flexContainer smallFont"> 1.66 + <div class="smallFont">j</div 1.67 + ><div class="bigFont unaligned">k</div> 1.68 + </div> 1.69 + n 1.70 + 1.71 +</body> 1.72 +</html>