layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-single-item-1a.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

michael@0 1 <!DOCTYPE html>
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 how we compute the baseline of a horizontal flex container
michael@0 7 with one flex item. This is the main-axis baseline. The spec says this
michael@0 8 about this case:
michael@0 9 ...if the flex container has at least one flex item, and its
michael@0 10 first flex item has a baseline parallel to the flex
michael@0 11 container's main axis, the flex container's main-axis
michael@0 12 baseline is that baseline.
michael@0 13 -->
michael@0 14 <html>
michael@0 15 <head>
michael@0 16 <title>CSS Test: Testing the baseline of a horizontal flex container with one flex item</title>
michael@0 17 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 18 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
michael@0 19 <link rel="match" href="flexbox-baseline-single-item-1-ref.html">
michael@0 20 <meta charset="utf-8">
michael@0 21 <style>
michael@0 22 .flexContainer {
michael@0 23 display: inline-flex;
michael@0 24 height: 16px;
michael@0 25 width: 16px;
michael@0 26 background: purple;
michael@0 27 border: 0px dotted black;
michael@0 28 /* (Elements that want a border will set their border-width.) */
michael@0 29 }
michael@0 30 </style>
michael@0 31 </head>
michael@0 32 <body>
michael@0 33 A
michael@0 34 <div class="flexContainer">a</div>
michael@0 35 <div class="flexContainer" style="padding-bottom: 20px">a</div>
michael@0 36 <div class="flexContainer" style="padding: 10px">a</div>
michael@0 37 <div class="flexContainer" style="border-width: 3px">a</div>
michael@0 38 <div class="flexContainer" style="border-bottom-width: 4px">a</div>
michael@0 39 </body>
michael@0 40 </html>

mercurial