1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-4-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,56 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 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 for behavior of the 'baseline' value for align-items and 1.10 + align-self, in a multi-line flex container. 1.11 + 1.12 + This reference case just consists of three single-line flex containers, 1.13 + to match the testcase's one flex container with three flex lines. 1.14 +--> 1.15 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.16 + <head> 1.17 + <title>CSS Reftest Reference</title> 1.18 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.19 + <style> 1.20 + .flexbox { 1.21 + display: flex; 1.22 + align-items: baseline; 1.23 + width: 90px; 1.24 + } 1.25 + 1.26 + .flexbox > * { 1.27 + width: 28px; 1.28 + background: yellow; 1.29 + border: 1px solid black; 1.30 + } 1.31 + 1.32 + .big { font: 24px sans-serif; } 1.33 + .medium { font: 14px sans-serif; } 1.34 + .small { font: 8px sans-serif; } 1.35 + 1.36 + </style> 1.37 + </head> 1.38 + <body> 1.39 + <div class="flexbox"> 1.40 + <!-- First flex line: Just 3 different sizes of text --> 1.41 + <div class="big">a</div> 1.42 + <div class="small">b</div> 1.43 + <div class="medium">c</div> 1.44 + </div> 1.45 + <div class="flexbox"> 1.46 + <!-- Second flex line: different margin/padding amounts on each item, 1.47 + and one non-baseline-aligned item.--> 1.48 + <div class="medium" style="padding-top: 10px">d</div> 1.49 + <div class="medium" style="margin-bottom: 8px">e</div> 1.50 + <div class="medium" style="align-self: stretch">f</div> 1.51 + </div> 1.52 + <div class="flexbox"> 1.53 + <!-- Third flex line: other margin/padding amounts on each item --> 1.54 + <div class="small" style="margin-top: 20px">g</div> 1.55 + <div class="big">h</div> 1.56 + <div class="medium" style="padding-bottom: 6px">i</div> 1.57 + </div> 1.58 + </body> 1.59 +</html>