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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-empty-1a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<!-- Testcase for how we compute the baseline of a horizontal flex container
    1.10 +     with no flex items. This is the main-axis baseline. The spec says this
    1.11 +     about this case:
    1.12 +
    1.13 +       The flex container's main-axis baseline is synthesized
    1.14 +       from ... the flex container's content box.
    1.15 +
    1.16 +     I'm taking that to mean the baseline is the bottom of the content box.
    1.17 +-->
    1.18 +<html>
    1.19 +<head>
    1.20 +  <title>CSS Test: Testing the baseline of an empty horizontal flex container</title>
    1.21 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.22 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
    1.23 +  <link rel="match" href="flexbox-baseline-empty-1-ref.html">
    1.24 +  <meta charset="utf-8">
    1.25 +  <link rel="stylesheet" type="text/css" href="support/ahem.css" />
    1.26 +  <style>
    1.27 +    body {
    1.28 +      font: 20px Ahem;
    1.29 +    }
    1.30 +    .flexContainer {
    1.31 +      display: inline-flex;
    1.32 +      height: 16px;
    1.33 +      width: 16px;
    1.34 +      background: purple;
    1.35 +      border: 0px dotted black;
    1.36 +      /* (Elements that want a border will set their border-width.) */
    1.37 +    }
    1.38 +  </style>
    1.39 +</head>
    1.40 +<body>
    1.41 +  A
    1.42 +  <div class="flexContainer"></div>
    1.43 +  <div class="flexContainer" style="padding-bottom: 20px"></div>
    1.44 +  <div class="flexContainer" style="padding: 10px"></div>
    1.45 +  <div class="flexContainer" style="border-width: 3px"></div>
    1.46 +  <div class="flexContainer" style="border-bottom-width: 4px"></div>
    1.47 +</body>
    1.48 +</html>

mercurial