layout/reftests/flexbox/flexbox-align-self-baseline-horiz-2.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-2.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). 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 +     This test checks baseline-alignment for a text <input> field, a
    1.15 +     <textarea>, and a <button> with a multi-line label.
    1.16 +-->
    1.17 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.18 +  <head>
    1.19 +    <style>
    1.20 +      .flexbox {
    1.21 +        display: flex;
    1.22 +        align-items: baseline;
    1.23 +        border: 1px dashed blue;
    1.24 +        font: 14px sans-serif;
    1.25 +      }
    1.26 +
    1.27 +      input { height: 30px; }
    1.28 +
    1.29 +      textarea {
    1.30 +        width: 30px;
    1.31 +        height: 50px;
    1.32 +      }
    1.33 +
    1.34 +      button.multilinebutton {
    1.35 +        font: 20px sans-serif;
    1.36 +        color: black;
    1.37 +        padding: 0;
    1.38 +        height: 50px;
    1.39 +        width: 20px;
    1.40 +        box-sizing: content-box;
    1.41 +      }
    1.42 +
    1.43 +      .lime   { background: lime;   }
    1.44 +      .orange { background: orange; }
    1.45 +      .pink   { background: pink;   }
    1.46 +      .aqua   { background: aqua;   }
    1.47 +      .violet { background: violet; }
    1.48 +      .tan    { background: tan;    }
    1.49 +   </style>
    1.50 +  </head>
    1.51 +  <body>
    1.52 +    <div class="flexbox">
    1.53 +      <div class="lime">text</div>
    1.54 +      <input type="text" style="width: 20px; min-width: 0;" value="input"/>
    1.55 +      <textarea style="width: 30px">t e x t a r e a </textarea>
    1.56 +      <button class="multilinebutton">b<br/>t<br/>n</button>
    1.57 +    </div>
    1.58 +  </body>
    1.59 +</html>

mercurial