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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!-- Testcase for behavior of the 'baseline' value for align-items (and
michael@0 7 align-self, implicitly). This test baseline-aligns various types of
michael@0 8 content, and the flexbox's vertical size depends on the aggregate
michael@0 9 post-alignment height of its children.
michael@0 10
michael@0 11 This test checks baseline-alignment for a text <input> field, a
michael@0 12 <textarea>, and a <button> with a multi-line label.
michael@0 13 -->
michael@0 14 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 15 <head>
michael@0 16 <style>
michael@0 17 .flexbox {
michael@0 18 display: flex;
michael@0 19 align-items: baseline;
michael@0 20 border: 1px dashed blue;
michael@0 21 font: 14px sans-serif;
michael@0 22 }
michael@0 23
michael@0 24 input { height: 30px; }
michael@0 25
michael@0 26 textarea {
michael@0 27 width: 30px;
michael@0 28 height: 50px;
michael@0 29 }
michael@0 30
michael@0 31 button.multilinebutton {
michael@0 32 font: 20px sans-serif;
michael@0 33 color: black;
michael@0 34 padding: 0;
michael@0 35 height: 50px;
michael@0 36 width: 20px;
michael@0 37 box-sizing: content-box;
michael@0 38 }
michael@0 39
michael@0 40 .lime { background: lime; }
michael@0 41 .orange { background: orange; }
michael@0 42 .pink { background: pink; }
michael@0 43 .aqua { background: aqua; }
michael@0 44 .violet { background: violet; }
michael@0 45 .tan { background: tan; }
michael@0 46 </style>
michael@0 47 </head>
michael@0 48 <body>
michael@0 49 <div class="flexbox">
michael@0 50 <div class="lime">text</div>
michael@0 51 <input type="text" style="width: 20px; min-width: 0;" value="input"/>
michael@0 52 <textarea style="width: 30px">t e x t a r e a </textarea>
michael@0 53 <button class="multilinebutton">b<br/>t<br/>n</button>
michael@0 54 </div>
michael@0 55 </body>
michael@0 56 </html>

mercurial