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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 12 <head>
michael@0 13 <title>CSS Test: Baseline alignment of block flex items with 'baseline' value for 'align-items' / 'align-self'</title>
michael@0 14 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 15 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#baseline-participation"/>
michael@0 16 <link rel="match" href="flexbox-align-self-baseline-horiz-1-ref.xhtml"/>
michael@0 17 <style>
michael@0 18 .flexbox {
michael@0 19 display: flex;
michael@0 20 align-items: baseline;
michael@0 21 border: 1px dashed blue;
michael@0 22 font: 14px sans-serif;
michael@0 23 }
michael@0 24
michael@0 25 .big {
michael@0 26 height: 100px;
michael@0 27 font: 24px sans-serif;
michael@0 28 margin-top: 20px;
michael@0 29 }
michael@0 30 .super {
michael@0 31 vertical-align: super;
michael@0 32 font-size: 12px;
michael@0 33 }
michael@0 34 .sub {
michael@0 35 vertical-align: sub;
michael@0 36 font-size: 12px;
michael@0 37 }
michael@0 38
michael@0 39 .lime { background: lime; }
michael@0 40 .yellow { background: yellow; }
michael@0 41 .orange { background: orange; }
michael@0 42 .pink { background: pink; }
michael@0 43 .aqua { background: aqua; }
michael@0 44 .tan { background: tan; }
michael@0 45 </style>
michael@0 46 </head>
michael@0 47 <body>
michael@0 48 <div class="flexbox">
michael@0 49 <div class="lime">blk_1line</div>
michael@0 50 <div class="yellow">blk<br/>2lines</div>
michael@0 51 <div class="orange"><span class="super">super</span></div>
michael@0 52 <div class="pink"><span class="sub">sub</span></div>
michael@0 53 <div class="aqua big">big<br/>text<br/>3lines</div>
michael@0 54 <i class="tan">ital<br/>ic</i>
michael@0 55 </div>
michael@0 56 </body>
michael@0 57 </html>

mercurial