layout/reftests/w3c-css/submitted/flexbox/flexbox-whitespace-handling-2-ref.xhtml

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-whitespace-handling-2-ref.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     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 +<!--
    1.10 +     This reference case is the same as the testcase, but with an explicit <div>
    1.11 +     around each run of content that we expect to turn into an anonymous
    1.12 +     flex item (to ensure that the whitespace is included).
    1.13 +-->
    1.14 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.15 +  <head>
    1.16 +    <title>CSS Reftest Reference</title>
    1.17 +    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    1.18 +    <link rel="stylesheet" type="text/css" href="support/ahem.css" />
    1.19 +    <style>
    1.20 +      div { height: 100px; }
    1.21 +      div.flexbox {
    1.22 +        white-space: pre;
    1.23 +        border: 1px dashed blue;
    1.24 +        width: 200px;
    1.25 +        display: flex;
    1.26 +        justify-content: space-around;
    1.27 +      }
    1.28 +      div.a {
    1.29 +        width: 30px;
    1.30 +        background: lightgreen;
    1.31 +      }
    1.32 +      div.b {
    1.33 +        width: 20px;
    1.34 +        background: lightblue;
    1.35 +      }
    1.36 +    </style>
    1.37 +  </head>
    1.38 +  <body>
    1.39 +    <!-- spaces around inline content at the beginning of flexbox -->
    1.40 +    <div class="flexbox"><div>  abc</div><div class="a"/></div>
    1.41 +    <div class="flexbox"><div>abc   </div><div class="a"/></div>
    1.42 +    <div class="flexbox"><div>  abc   </div><div class="a"/></div>
    1.43 +
    1.44 +    <!-- spaces around inline content at the end of flexbox -->
    1.45 +    <div class="flexbox"><div class="a"/><div>  abc</div></div>
    1.46 +    <div class="flexbox"><div class="a"/><div>abc   </div></div>
    1.47 +    <div class="flexbox"><div class="a"/><div>  abc   </div></div>
    1.48 +
    1.49 +    <!-- whitespace around inline content in between flex items -->
    1.50 +    <div class="flexbox"><div class="a"/><div>  abc</div><div class="b"/></div>
    1.51 +    <div class="flexbox"><div class="a"/><div>abc   </div><div class="b"/></div>
    1.52 +    <div class="flexbox"><div class="a"/><div>  abc   </div><div class="b"/></div>
    1.53 +  </body>
    1.54 +</html>
    1.55 +

mercurial