layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-1-rtl.xhtml

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!-- Testcase with borders on flex items, and "direction: rtl" to reverse
michael@0 7 the flex container's main axis. -->
michael@0 8 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 9 <head>
michael@0 10 <title>CSS Test: Testing borders on flex items in a horizontal flex container with 'direction: rtl'</title>
michael@0 11 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 12 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"/>
michael@0 13 <link rel="match" href="flexbox-mbp-horiz-1-reverse-ref.xhtml"/>
michael@0 14 <style>
michael@0 15 div { height: 100px; border: 0; }
michael@0 16 div.flexbox {
michael@0 17 width: 200px;
michael@0 18 font-size: 10px;
michael@0 19 display: flex;
michael@0 20 direction: rtl;
michael@0 21 }
michael@0 22 div.a {
michael@0 23 flex: 1 0 24px;
michael@0 24 background: lightgreen;
michael@0 25 border-style: dotted;
michael@0 26 border-left-width: 2px;
michael@0 27 border-right-width: 4px;
michael@0 28 }
michael@0 29 div.b {
michael@0 30 flex: 2 0 10px;
michael@0 31 background: yellow;
michael@0 32 border-style: dashed;
michael@0 33 border-left-width: 7px;
michael@0 34 border-right-width: 3px;
michael@0 35 }
michael@0 36 div.c {
michael@0 37 flex: 3 0 40px;
michael@0 38 background: orange;
michael@0 39 }
michael@0 40 div.flexNone {
michael@0 41 flex: none;
michael@0 42 background: pink;
michael@0 43 }
michael@0 44 div.flexBasis {
michael@0 45 flex: 0 0 20px;
michael@0 46 background: gray;
michael@0 47 }
michael@0 48 div.spacer {
michael@0 49 display: inline-block;
michael@0 50 width: 15px;
michael@0 51 height: 15px;
michael@0 52 background: purple;
michael@0 53 }
michael@0 54 </style>
michael@0 55 </head>
michael@0 56 <body>
michael@0 57 <div class="flexbox"><div class="a"></div><div class="b"/></div>
michael@0 58 <div class="flexbox"><div class="a"/><div class="c"/></div>
michael@0 59 <div class="flexbox"><div class="a"/>
michael@0 60 <div class="flexNone"><div class="spacer"/></div>
michael@0 61 </div>
michael@0 62 <div class="flexbox"><div class="b"/><div class="c"/></div>
michael@0 63 <div class="flexbox"><div class="b"/>
michael@0 64 <div class="flexNone"><div class="spacer"/><div class="spacer"/></div>
michael@0 65 </div>
michael@0 66
michael@0 67 <div class="flexbox">
michael@0 68 <div class="a"/><div class="b"/><div class="flexBasis"/><div class="c"/>
michael@0 69 </div>
michael@0 70 </body>
michael@0 71 </html>
michael@0 72

mercurial