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-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,65 @@ 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 + width: 40px; 1.23 + height: 40px; 1.24 + background: lightblue; 1.25 + } 1.26 + .flexContainer > * { 1.27 + height: 20px; 1.28 + display: inline-block; 1.29 + } 1.30 + 1.31 + .smallFont { 1.32 + font-size: 8px; 1.33 + line-height: 8px; 1.34 + } 1.35 + .medFont { 1.36 + font-size: 12px; 1.37 + line-height: 12px; 1.38 + } 1.39 + .bigFont { 1.40 + font-size: 16px; 1.41 + line-height: 16px; 1.42 + } 1.43 + .unaligned { float: left } 1.44 + </style> 1.45 +</head> 1.46 +<body> 1.47 + a 1.48 + <!-- Flex containers with flex items that have a mix of baselines: --> 1.49 + <div class="flexContainer medFont"> 1.50 + <div class="medFont">b</div 1.51 + ><br><div class="bigFont unaligned">c</div> 1.52 + </div> 1.53 + 1.54 + <div class="flexContainer bigFont"> 1.55 + <div class="bigFont">f</div 1.56 + ><br><div class="smallFont unaligned">g</div> 1.57 + </div> 1.58 + 1.59 + <!-- Flex container with second line baseline-aligned 1.60 + (shouldn't make a difference) --> 1.61 + <div class="flexContainer smallFont"> 1.62 + <div class="smallFont">j</div 1.63 + ><br><div class="bigFont unaligned">k</div> 1.64 + </div> 1.65 + n 1.66 + 1.67 +</body> 1.68 +</html>