layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-baseline-horiz-1a.xhtml

changeset 0
6474c204b198
     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-1a.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     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). This test baseline-aligns various types of
    1.11 +     content, and the flexbox's vertical size depends on the aggregate
    1.12 +     post-alignment height of its children.
    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'</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-1-ref.xhtml"/>
    1.20 +    <style>
    1.21 +      .flexbox {
    1.22 +        display: flex;
    1.23 +        align-items: baseline;
    1.24 +        border: 1px dashed blue;
    1.25 +        font: 14px sans-serif;
    1.26 +      }
    1.27 +
    1.28 +      .big {
    1.29 +        height: 100px;
    1.30 +        font: 24px sans-serif;
    1.31 +        margin-top: 20px;
    1.32 +      }
    1.33 +      .super {
    1.34 +        vertical-align: super;
    1.35 +        font-size: 12px;
    1.36 +      }
    1.37 +      .sub {
    1.38 +        vertical-align: sub;
    1.39 +        font-size: 12px;
    1.40 +      }
    1.41 +
    1.42 +      .lime   { background: lime;   }
    1.43 +      .yellow { background: yellow; }
    1.44 +      .orange { background: orange; }
    1.45 +      .pink   { background: pink;   }
    1.46 +      .aqua   { background: aqua;   }
    1.47 +      .tan    { background: tan;    }
    1.48 +   </style>
    1.49 +  </head>
    1.50 +  <body>
    1.51 +    <div class="flexbox">
    1.52 +      <div class="lime">blk_1line</div>
    1.53 +      <div class="yellow">blk<br/>2lines</div>
    1.54 +      <div class="orange"><span class="super">super</span></div>
    1.55 +      <div class="pink"><span class="sub">sub</span></div>
    1.56 +      <div class="aqua big">big<br/>text<br/>3lines</div>
    1.57 +      <i class="tan">ital<br/>ic</i>
    1.58 +    </div>
    1.59 +  </body>
    1.60 +</html>

mercurial