layout/reftests/w3c-css/submitted/flexbox/flexbox-with-pseudo-elements-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-with-pseudo-elements-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     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 to ensure we handle ::before and ::after pseudo-elements on
    1.10 +     a flex container and treat them as flex items (e.g. honoring "align-self",
    1.11 +     and not merging them into anonymous flex items formed around text).
    1.12 +-->
    1.13 +<html>
    1.14 +<head>
    1.15 +  <title>CSS Test: Testing that generated content nodes are treated as a flex items</title>
    1.16 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.17 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items">
    1.18 +  <link rel="match" href="flexbox-with-pseudo-elements-1-ref.html">
    1.19 +  <meta charset="utf-8">
    1.20 +  <style>
    1.21 +    .flexContainer {
    1.22 +      display: flex;
    1.23 +      align-items: flex-end;
    1.24 +      justify-content: space-between;
    1.25 +      height: 50px;
    1.26 +      width: 300px;
    1.27 +      margin-bottom: 2px;
    1.28 +      background: lightgray;
    1.29 +    }
    1.30 +    div.withBefore::before {
    1.31 +      align-self: center;
    1.32 +      content: 'b';
    1.33 +      background: yellow;
    1.34 +    }
    1.35 +    div.withAfter::after {
    1.36 +      align-self: center;
    1.37 +      content: 'a';
    1.38 +      background: lightblue;
    1.39 +    }
    1.40 +  </style>
    1.41 +</head>
    1.42 +<body>
    1.43 +  <div class="flexContainer withBefore">
    1.44 +    x
    1.45 +    <div>y</div>
    1.46 +    z
    1.47 +  </div>
    1.48 +  <div class="flexContainer withAfter">
    1.49 +    x
    1.50 +    <div>y</div>
    1.51 +    z
    1.52 +  </div>
    1.53 +  <div class="flexContainer withBefore withAfter">
    1.54 +    x
    1.55 +    <div>y</div>
    1.56 +    z
    1.57 +  </div>
    1.58 +</body>
    1.59 +</html>

mercurial