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-4.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,73 @@ 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 baseline of a horizontal multi-line (wrap-reverse) flex container with baseline-aligned items on first line</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/#flex-baselines"> 1.14 + <link rel="match" href="flexbox-baseline-multi-line-horiz-4-ref.html"> 1.15 + <meta charset="utf-8"> 1.16 + <style> 1.17 + .flexContainer { 1.18 + display: inline-flex; 1.19 + flex-wrap: wrap-reverse; 1.20 + width: 40px; 1.21 + height: 100px; 1.22 + background: lightgray; 1.23 + 1.24 + /* Use "align-content", to test that packing space is considered when 1.25 + getting container's baseline from its first FlexLine:*/ 1.26 + align-content: center; 1.27 + } 1.28 + .flexContainer > * { 1.29 + width: 20px; 1.30 + } 1.31 + 1.32 + .smallFont { 1.33 + font-size: 8px; 1.34 + line-height: 8px; 1.35 + } 1.36 + .medFont { 1.37 + font-size: 12px; 1.38 + line-height: 12px; 1.39 + } 1.40 + .bigFont { 1.41 + font-size: 16px; 1.42 + line-height: 16px; 1.43 + } 1.44 + </style> 1.45 +</head> 1.46 +<body> 1.47 + a 1.48 + <!-- Flex container with second item in first line baseline-aligned 1.49 + (should set the container's baseline) --> 1.50 + <div class="flexContainer"> 1.51 + <div class="medFont">b</div> 1.52 + <div class="bigFont" style="align-self: baseline">c</div> 1.53 + <div class="medFont">d</div> 1.54 + <div class="smallFont">e</div> 1.55 + </div> 1.56 + 1.57 + <!-- Flex container with both items in first line baseline-aligned 1.58 + (should set the container's baseline) --> 1.59 + <div class="flexContainer"> 1.60 + <div class="smallFont" style="align-self: baseline">f</div> 1.61 + <div class="medFont" style="align-self: baseline">g</div> 1.62 + <div class="bigFont">h</div> 1.63 + <div class="smallFont">i</div> 1.64 + </div> 1.65 + 1.66 + <!-- Flex container with all items baseline-aligned, and with some padding 1.67 + (only those on first line should set the container's baseline) --> 1.68 + <div class="flexContainer" style="align-items: baseline"> 1.69 + <div class="bigFont">j</div> 1.70 + <div class="smallFont" style="padding-bottom: 20px">k</div> 1.71 + <div class="smallFont">l</div> 1.72 + <div class="medFont">m</div> 1.73 + </div> 1.74 + n 1.75 +</body> 1.76 +</html>