layout/reftests/flexbox/flexbox-align-self-baseline-horiz-4.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-align-self-baseline-horiz-4.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     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 a <table>.
    1.11 +-->
    1.12 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.13 +  <head>
    1.14 +    <style>
    1.15 +      div.flexbox {
    1.16 +        display: flex;
    1.17 +        align-items: baseline;
    1.18 +        border: 1px dashed blue;
    1.19 +        font: 14px sans-serif;
    1.20 +      }
    1.21 +
    1.22 +      table {
    1.23 +        margin: 1px; /* to fix fuzziness from text overlapping table border */
    1.24 +      }
    1.25 +
    1.26 +      .lime { background: lime; }
    1.27 +      .pink { background: pink; }
    1.28 +      .aqua { background: aqua; }
    1.29 +   </style>
    1.30 +  </head>
    1.31 +  <body>
    1.32 +    <div class="flexbox">
    1.33 +      <div class="lime">text</div>
    1.34 +      <table class="pink" border="1">
    1.35 +        <tr><td>tr1</td></tr>
    1.36 +        <tr><td>tr2</td></tr>
    1.37 +      </table>
    1.38 +    </div>
    1.39 +  </body>
    1.40 +</html>

mercurial