1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-vert-rtl-3.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,70 @@ 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 for align-items / align-self behavior, with all the possible 1.10 + values included on different items within a flex container, and with the 1.11 + flex container being skinnier than its items, and with "direction: rtl" to 1.12 + swap the horizontal (cross) axis. --> 1.13 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.14 + <head> 1.15 + <title>CSS Test: Testing the behavior of 'align-self' with a vertical flex container that's skinnier than its items and with 'direction: rtl'</title> 1.16 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.17 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/> 1.18 + <link rel="match" href="flexbox-align-self-vert-rtl-3-ref.xhtml"/> 1.19 + <style> 1.20 + .flexbox { 1.21 + border: 1px dashed blue; 1.22 + width: 4px; 1.23 + display: flex; 1.24 + flex-direction: column; 1.25 + direction: rtl; 1.26 + font-family: sans-serif; 1.27 + font-size: 10px; 1.28 + margin-left: 80px; 1.29 + } 1.30 + 1.31 + div.big { 1.32 + font-size: 18px; 1.33 + width: 50px; 1.34 + } 1.35 + 1.36 + /* Classes for each of the various align-self values */ 1.37 + .flex-start { 1.38 + background: lime; 1.39 + align-self: flex-start; 1.40 + } 1.41 + .flex-end { 1.42 + background: orange; 1.43 + align-self: flex-end; 1.44 + } 1.45 + .center { 1.46 + background: lightblue; 1.47 + align-self: center; 1.48 + } 1.49 + .baseline { 1.50 + background: teal; 1.51 + align-self: baseline; 1.52 + } 1.53 + .stretch { 1.54 + background: pink; 1.55 + align-self: stretch; 1.56 + } 1.57 + </style> 1.58 + </head> 1.59 + <body> 1.60 + <div class="flexbox"> 1.61 + <div class="flex-start">start</div> 1.62 + <div class="flex-start big">a b</div> 1.63 + <div class="flex-end">end</div> 1.64 + <div class="flex-end big">a b</div> 1.65 + <div class="center">center</div> 1.66 + <div class="center big">a b</div> 1.67 + <div class="baseline">base</div> 1.68 + <div class="baseline big">abc</div> 1.69 + <div class="stretch">stretch</div> 1.70 + <div class="stretch big">a b</div> 1.71 + </div> 1.72 + </body> 1.73 +</html>