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-5.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 +<!-- Testcase for behavior of the 'baseline' value for align-items (and 1.10 + align-self, implicitly), in a wrap-reverse multi-line flex container. 1.11 + This test baseline-aligns variously-sized flex items, and the container's 1.12 + vertical size depends on the aggregate post-alignment height of its items. 1.13 + --> 1.14 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.15 + <head> 1.16 + <title>CSS Test: Baseline alignment of block flex items with 'baseline' value for 'align-items' / 'align-self' in a multi-line flex container</title> 1.17 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.18 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#baseline-participation"/> 1.19 + <link rel="match" href="flexbox-align-self-baseline-horiz-5-ref.xhtml"/> 1.20 + <style> 1.21 + .flexbox { 1.22 + display: flex; 1.23 + flex-wrap: wrap-reverse; 1.24 + align-items: baseline; 1.25 + width: 90px; 1.26 + } 1.27 + 1.28 + .flexbox > * { 1.29 + width: 28px; /* 3 items per Flex Line */ 1.30 + background: yellow; 1.31 + border: 1px solid black; 1.32 + } 1.33 + 1.34 + .big { font: 24px sans-serif; } 1.35 + .medium { font: 14px sans-serif; } 1.36 + .small { font: 8px sans-serif; } 1.37 + 1.38 + </style> 1.39 + </head> 1.40 + <body> 1.41 + <div class="flexbox"> 1.42 + <!-- First flex line: Just 3 different sizes of text --> 1.43 + <div class="big">a</div> 1.44 + <div class="small">b</div> 1.45 + <div class="medium">c</div> 1.46 + 1.47 + <!-- Second flex line: different margin/padding amounts on each item, 1.48 + and one non-baseline-aligned item.--> 1.49 + <div class="medium" style="padding-top: 10px">d</div> 1.50 + <div class="medium" style="margin-bottom: 8px">e</div> 1.51 + <div class="medium" style="align-self: stretch">f</div> 1.52 + 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>