layout/reftests/w3c-css/submitted/flexbox/flexbox-baseline-single-item-1b.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-single-item-1b.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     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 vertical flex container
    1.10 +     with one flex item. This is the cross-axis baseline. The spec says this
    1.11 +     about this case:
    1.12 +       If the flex container has at least one flex item, and its
    1.13 +       first flex item has a baseline parallel to the flex
    1.14 +       container's cross axis, the flex container's cross-axis
    1.15 +       baseline is that baseline.
    1.16 +-->
    1.17 +<html>
    1.18 +<head>
    1.19 +  <title>CSS Test: Testing the baseline of a vertical flex container with one flex item</title>
    1.20 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.21 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines">
    1.22 +  <link rel="match" href="flexbox-baseline-single-item-1-ref.html">
    1.23 +  <meta charset="utf-8">
    1.24 +  <style>
    1.25 +    .flexContainer {
    1.26 +      display: inline-flex;
    1.27 +      flex-direction: column;
    1.28 +      height: 16px;
    1.29 +      width: 16px;
    1.30 +      background: purple;
    1.31 +      border: 0px dotted black;
    1.32 +      /* (Elements that want a border will set their border-width.) */
    1.33 +    }
    1.34 +  </style>
    1.35 +</head>
    1.36 +<body>
    1.37 +  A
    1.38 +  <div class="flexContainer">a</div>
    1.39 +  <div class="flexContainer" style="padding-bottom: 20px">a</div>
    1.40 +  <div class="flexContainer" style="padding: 10px">a</div>
    1.41 +  <div class="flexContainer" style="border-width: 3px">a</div>
    1.42 +  <div class="flexContainer" style="border-bottom-width: 4px">a</div>
    1.43 +</body>
    1.44 +</html>

mercurial