layout/reftests/w3c-css/submitted/flexbox/flexbox-collapsed-item-baseline-1.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-collapsed-item-baseline-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     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 +<html>
    1.10 +<head>
    1.11 +  <title>CSS Test: Testing that a collapsed flex item participates in baseline alignment only for the purpose of establishing container's cross size</title>
    1.12 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.13 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#algo-visibility">
    1.14 +  <link rel="match" href="flexbox-collapsed-item-baseline-1-ref.html">
    1.15 +  <meta charset="utf-8">
    1.16 +  <style>
    1.17 +    .flexContainer {
    1.18 +      display: flex;
    1.19 +      width: 50px;
    1.20 +      background: yellow;
    1.21 +      border: 1px dotted black;
    1.22 +      margin: 5px;
    1.23 +      align-items: baseline;
    1.24 +    }
    1.25 +    .collapse {
    1.26 +      visibility: collapse;
    1.27 +    }
    1.28 +    .largeFont {
    1.29 +      font-size: 20px;
    1.30 +      background: lightblue;
    1.31 +      /* Our flex items get padding on opposite sides (top/bottom) so that they
    1.32 +         produce a large combined height when baseline-aligned: */
    1.33 +      padding-top: 5px;
    1.34 +    }
    1.35 +    .smallFont {
    1.36 +      font-size: 10px;
    1.37 +      background: pink;
    1.38 +      /* Our flex items get padding on opposite sides (top/bottom) so that they
    1.39 +         produce a large combined height when baseline-aligned: */
    1.40 +      padding-bottom: 20px;
    1.41 +    }
    1.42 +  </style>
    1.43 +</head>
    1.44 +<body>
    1.45 +  <!-- Second item collapsed: -->
    1.46 +  <div class="flexContainer">
    1.47 +    <div class="largeFont">a</div>
    1.48 +    <div class="smallFont collapse">b</div>
    1.49 +  </div>
    1.50 +
    1.51 +  <!-- First item collapsed: -->
    1.52 +  <div class="flexContainer">
    1.53 +    <div class="largeFont collapse">a</div>
    1.54 +    <div class="smallFont">b</div>
    1.55 +  </div>
    1.56 +</body>
    1.57 +</html>

mercurial