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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 no flex items. This is the main-axis baseline. The spec says this
     8      about this case:
    10        The flex container's main-axis baseline is synthesized
    11        from ... the flex container's content box.
    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 horizontal 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       height: 16px;
    30       width: 16px;
    31       background: purple;
    32       border: 0px dotted black;
    33       /* (Elements that want a border will set their border-width.) */
    34     }
    35   </style>
    36 </head>
    37 <body>
    38   A
    39   <div class="flexContainer"></div>
    40   <div class="flexContainer" style="padding-bottom: 20px"></div>
    41   <div class="flexContainer" style="padding: 10px"></div>
    42   <div class="flexContainer" style="border-width: 3px"></div>
    43   <div class="flexContainer" style="border-bottom-width: 4px"></div>
    44 </body>
    45 </html>

mercurial