1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-3-reverse.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,84 @@ 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 border/padding on a row-reverse flex container and on its children --> 1.10 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.11 + <head> 1.12 + <title>CSS Test: Testing borders and padding on a row-reverse horizontal flex container and its flex items</title> 1.13 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.14 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#layout-algorithm"/> 1.15 + <link rel="match" href="flexbox-mbp-horiz-3-reverse-ref.xhtml"/> 1.16 + <style> 1.17 + div { height: 20px; border: 0; } 1.18 + div.flexbox { 1.19 + width: 200px; 1.20 + display: flex; 1.21 + flex-direction: row-reverse; 1.22 + margin-bottom: 2px; 1.23 + } 1.24 + 1.25 + <!-- customizations for flex container border/padding --> 1.26 + .borderA { 1.27 + border-style: dashed; 1.28 + border-color: purple; 1.29 + border-top-width: 6px; 1.30 + border-right-width: 4px; 1.31 + border-bottom-width: 2px; 1.32 + border-left-width: 8px; 1.33 + } 1.34 + 1.35 + .borderB { 1.36 + border-style: dashed; 1.37 + border-color: purple; 1.38 + border-top-width: 4px; 1.39 + border-right-width: 5px; 1.40 + border-bottom-width: 6px; 1.41 + border-left-width: 7px; 1.42 + } 1.43 + 1.44 + .paddingA { 1.45 + padding: 4px 3px 2px 1px; 1.46 + } 1.47 + 1.48 + .paddingB { 1.49 + padding: 8px 11px 14px 17px; 1.50 + } 1.51 + 1.52 + div.child1 { 1.53 + flex: 1 0 24px; 1.54 + background: lightgreen; 1.55 + border-style: dotted; 1.56 + border-left-width: 2px; 1.57 + border-right-width: 4px; 1.58 + } 1.59 + div.child2 { 1.60 + flex: 2 0 10px; 1.61 + background: yellow; 1.62 + border-style: dashed; 1.63 + border-left-width: 7px; 1.64 + border-right-width: 3px; 1.65 + } 1.66 + </style> 1.67 + </head> 1.68 + <body> 1.69 + <div class="flexbox borderA" 1.70 + ><div class="child1"/><div class="child2"/></div> 1.71 + <div class="flexbox borderA paddingA" 1.72 + ><div class="child1"/><div class="child2"/></div> 1.73 + <div class="flexbox borderA paddingB" 1.74 + ><div class="child1"/><div class="child2"/></div> 1.75 + <div class="flexbox borderB" 1.76 + ><div class="child1"/><div class="child2"/></div> 1.77 + <div class="flexbox borderB paddingA" 1.78 + ><div class="child1"/><div class="child2"/></div> 1.79 + <div class="flexbox borderB paddingB" 1.80 + ><div class="child1"/><div class="child2"/></div> 1.81 + <div class="flexbox paddingA" 1.82 + ><div class="child1"/><div class="child2"/></div> 1.83 + <div class="flexbox paddingB" 1.84 + ><div class="child1"/><div class="child2"/></div> 1.85 + </body> 1.86 +</html> 1.87 +