layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-horiz-3.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-justify-content-horiz-3.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,114 @@
     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 +<!-- Testcase with a variety of 'display: flex' examples testing each
    1.10 +     possible value of the 'justify-content' property, and with each
    1.11 +     individual flex item being wider than the flexbox itself (so that
    1.12 +     there isn't any packing space available).
    1.13 +       * For 'flex-start'/'space-between', we should overflow on the end
    1.14 +         (right) side.
    1.15 +       * For 'flex-end', we should overflow on the start (left) side.
    1.16 +       * For 'center'/'space-around', we should overflow equally on both sides.
    1.17 +-->
    1.18 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.19 +  <head>
    1.20 +    <title>CSS Test: Testing 'justify-content' in a horizontal flex container, and its effects on flex items that overflow</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/#justify-content-property"/>
    1.23 +    <link rel="match" href="flexbox-justify-content-horiz-3-ref.xhtml"/>
    1.24 +    <style>
    1.25 +      body { margin-left: 100px; } /* So we can see left-overflowed stuff */
    1.26 +      div.flexbox {
    1.27 +        width: 30px;
    1.28 +        display: flex;
    1.29 +        margin-bottom: 2px;
    1.30 +      }
    1.31 +      div.a {
    1.32 +        height: 20px;
    1.33 +        flex: 0 0 35px;
    1.34 +        background: lightgreen;
    1.35 +      }
    1.36 +      div.b {
    1.37 +        height: 20px;
    1.38 +        flex: 0 0 40px;
    1.39 +        background: pink;
    1.40 +      }
    1.41 +      div.c {
    1.42 +        height: 20px;
    1.43 +        flex: 0 0 45px;
    1.44 +        background: orange;
    1.45 +      }
    1.46 +    </style>
    1.47 +  </head>
    1.48 +  <body>
    1.49 +
    1.50 +    <!-- default (start) -->
    1.51 +    <div class="flexbox">
    1.52 +      <div class="a"/>
    1.53 +    </div>
    1.54 +    <div class="flexbox">
    1.55 +      <div class="a"/><div class="b"></div>
    1.56 +    </div>
    1.57 +    <div class="flexbox">
    1.58 +      <div class="a"/><div class="b"/><div class="c"/>
    1.59 +    </div>
    1.60 +
    1.61 +    <!-- flex-start -->
    1.62 +    <div class="flexbox" style="justify-content: flex-start">
    1.63 +      <div class="a"/>
    1.64 +    </div>
    1.65 +    <div class="flexbox" style="justify-content: flex-start">
    1.66 +      <div class="a"/><div class="b"/>
    1.67 +    </div>
    1.68 +    <div class="flexbox" style="justify-content: flex-start">
    1.69 +      <div class="a"/><div class="b"/><div class="c"/>
    1.70 +    </div>
    1.71 +
    1.72 +    <!-- flex-end -->
    1.73 +    <div class="flexbox" style="justify-content: flex-end">
    1.74 +      <div class="a"/>
    1.75 +    </div>
    1.76 +    <div class="flexbox" style="justify-content: flex-end">
    1.77 +      <div class="a"/><div class="b"/>
    1.78 +    </div>
    1.79 +    <div class="flexbox" style="justify-content: flex-end">
    1.80 +      <div class="a"/><div class="b"/><div class="c"/>
    1.81 +    </div>
    1.82 +
    1.83 +    <!-- center -->
    1.84 +    <div class="flexbox" style="justify-content: center">
    1.85 +      <div class="a"/>
    1.86 +    </div>
    1.87 +    <div class="flexbox" style="justify-content: center">
    1.88 +      <div class="a"/><div class="b"/>
    1.89 +    </div>
    1.90 +    <div class="flexbox" style="justify-content: center">
    1.91 +      <div class="a"/><div class="b"/><div class="c"/>
    1.92 +    </div>
    1.93 +
    1.94 +    <!-- space-between -->
    1.95 +    <div class="flexbox" style="justify-content: space-between">
    1.96 +      <div class="a"/>
    1.97 +    </div>
    1.98 +    <div class="flexbox" style="justify-content: space-between">
    1.99 +      <div class="a"/><div class="b"/>
   1.100 +    </div>
   1.101 +    <div class="flexbox" style="justify-content: space-between">
   1.102 +      <div class="a"/><div class="b"/><div class="c"/>
   1.103 +    </div>
   1.104 +
   1.105 +    <!-- space-around -->
   1.106 +    <div class="flexbox" style="justify-content: space-around">
   1.107 +      <div class="a"/>
   1.108 +    </div>
   1.109 +    <div class="flexbox" style="justify-content: space-around">
   1.110 +      <div class="a"/><div class="b"/>
   1.111 +    </div>
   1.112 +    <div class="flexbox" style="justify-content: space-around">
   1.113 +      <div class="a"/><div class="b"/><div class="c"/>
   1.114 +    </div>
   1.115 +
   1.116 +  </body>
   1.117 +</html>

mercurial