layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-1-rtl-reverse.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-mbp-horiz-1-rtl-reverse.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,74 @@
     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 borders on flex items, and "direction: rtl" and
    1.10 +     "flex-direction: row-reverse" to *doubly* reverse the flex container's
    1.11 +     main axis. --> 
    1.12 +<html xmlns="http://www.w3.org/1999/xhtml">
    1.13 +  <head>
    1.14 +    <title>CSS Test: Testing borders on flex items in a row-reverse horizontal flex container, with 'direction: rtl'</title>
    1.15 +    <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    1.16 +    <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"/>
    1.17 +    <link rel="match" href="flexbox-mbp-horiz-1-ref.xhtml"/>
    1.18 +    <style>
    1.19 +      div { height: 100px; border: 0; }
    1.20 +      div.flexbox {
    1.21 +        width: 200px;
    1.22 +        font-size: 10px;
    1.23 +        display: flex;
    1.24 +        flex-direction: row-reverse;
    1.25 +        direction: rtl;
    1.26 +      }
    1.27 +      div.a {
    1.28 +        flex: 1 0 24px;
    1.29 +        background: lightgreen;
    1.30 +        border-style: dotted;
    1.31 +        border-left-width: 2px;
    1.32 +        border-right-width: 4px;
    1.33 +      }
    1.34 +      div.b {
    1.35 +        flex: 2 0 10px;
    1.36 +        background: yellow;
    1.37 +        border-style: dashed;
    1.38 +        border-left-width: 7px;
    1.39 +        border-right-width: 3px;
    1.40 +      }
    1.41 +      div.c {
    1.42 +        flex: 3 0 40px;
    1.43 +        background: orange;
    1.44 +      }
    1.45 +      div.flexNone {
    1.46 +        flex: none;
    1.47 +        background: pink;
    1.48 +      }
    1.49 +      div.flexBasis {
    1.50 +        flex: 0 0 20px;
    1.51 +        background: gray;
    1.52 +      }
    1.53 +      div.spacer {
    1.54 +        display: inline-block;
    1.55 +        width: 15px;
    1.56 +        height: 15px;
    1.57 +        background: purple;
    1.58 +      }
    1.59 +    </style>
    1.60 +  </head>
    1.61 +  <body>
    1.62 +    <div class="flexbox"><div class="a"></div><div class="b"/></div>
    1.63 +    <div class="flexbox"><div class="a"/><div class="c"/></div>
    1.64 +    <div class="flexbox"><div class="a"/>
    1.65 +      <div class="flexNone"><div class="spacer"/></div>
    1.66 +    </div>
    1.67 +    <div class="flexbox"><div class="b"/><div class="c"/></div>
    1.68 +    <div class="flexbox"><div class="b"/>
    1.69 +      <div class="flexNone"><div class="spacer"/><div class="spacer"/></div>
    1.70 +    </div>
    1.71 +
    1.72 +    <div class="flexbox">
    1.73 +      <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/>
    1.74 +    </div>
    1.75 +  </body>
    1.76 +</html>
    1.77 +

mercurial