layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-empty-1b.html

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:2df0b568c445
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 vertical flex container
7 with no flex items. This is the cross-axis baseline. The spec says this
8 about this case:
9
10 ...the flex container's cross-axis baseline is synthesized
11 from ... the flex container's content box.
12
13 I'm taking that to mean the baseline is the bottom of the content box.
14 -->
15 <html>
16 <head>
17 <title>CSS Test: Testing the baseline of an empty vertical flex container</title>
18 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
19 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
20 <link rel="match" href="flexbox-baseline-empty-1-ref.html">
21 <meta charset="utf-8">
22 <link rel="stylesheet" type="text/css" href="support/ahem.css" />
23 <style>
24 body {
25 font: 20px Ahem;
26 }
27 .flexContainer {
28 display: inline-flex;
29 flex-direction: column;
30 height: 16px;
31 width: 16px;
32 background: purple;
33 border: 0px dotted black;
34 /* (Elements that want a border will set their border-width.) */
35 }
36 </style>
37 </head>
38 <body>
39 A
40 <div class="flexContainer"></div>
41 <div class="flexContainer" style="padding-bottom: 20px"></div>
42 <div class="flexContainer" style="padding: 10px"></div>
43 <div class="flexContainer" style="border-width: 3px"></div>
44 <div class="flexContainer" style="border-bottom-width: 4px"></div>
45 </body>
46 </html>

mercurial