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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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 has various types of baseline-aligned
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 text <button>, for
michael@0 12 various <input> fields, for <label>, and for <fieldset>.
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 .big {
michael@0 25 height: 100px;
michael@0 26 font: 24px sans-serif;
michael@0 27 margin-top: 20px;
michael@0 28 }
michael@0 29
michael@0 30 .lime { background: lime; }
michael@0 31 .pink { background: pink; }
michael@0 32 .aqua { background: aqua; }
michael@0 33 </style>
michael@0 34 </head>
michael@0 35 <body>
michael@0 36 <div class="flexbox">
michael@0 37 <div class="lime">text</div>
michael@0 38 <button>btn</button>
michael@0 39 <input type="radio"/>
michael@0 40 <input type="checkbox"/>
michael@0 41 <label class="pink">label</label>
michael@0 42 <label class="aqua">lab<br/>el</label>
michael@0 43 <fieldset>field<br/>set</fieldset>
michael@0 44 <fieldset><legend>leg</legend>field<br/>set</fieldset>
michael@0 45 <fieldset><legend>leg<br/>end</legend>field<br/>set</fieldset>
michael@0 46 </div>
michael@0 47 </body>
michael@0 48 </html>

mercurial