Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE html>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <!-- Testcase for how we compute the baseline of a horizontal flex container
7 with one flex item. This is the main-axis baseline. The spec says this
8 about this case:
9 ...if the flex container has at least one flex item, and its
10 first flex item has a baseline parallel to the flex
11 container's main axis, the flex container's main-axis
12 baseline is that baseline.
13 -->
14 <html>
15 <head>
16 <title>CSS Test: Testing the baseline of a horizontal flex container with one flex item</title>
17 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
18 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
19 <link rel="match" href="flexbox-baseline-single-item-1-ref.html">
20 <meta charset="utf-8">
21 <style>
22 .flexContainer {
23 display: inline-flex;
24 height: 16px;
25 width: 16px;
26 background: purple;
27 border: 0px dotted black;
28 /* (Elements that want a border will set their border-width.) */
29 }
30 </style>
31 </head>
32 <body>
33 A
34 <div class="flexContainer">a</div>
35 <div class="flexContainer" style="padding-bottom: 20px">a</div>
36 <div class="flexContainer" style="padding: 10px">a</div>
37 <div class="flexContainer" style="border-width: 3px">a</div>
38 <div class="flexContainer" style="border-bottom-width: 4px">a</div>
39 </body>
40 </html>