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-1-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,112 @@ 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 +<!-- Reference case for align-items / align-self behavior in a vertical 1.10 + "direction: rtl" flex container, using blocks in place of flex items and 1.11 + using float and width keywords to emulate the align-items / align-self 1.12 + properties. --> 1.13 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.14 + <head> 1.15 + <title>CSS Reftest Reference</title> 1.16 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.17 + <style> 1.18 + .flexbox { 1.19 + border: 1px dashed blue; 1.20 + width: 200px; 1.21 + direction: rtl; 1.22 + font-family: sans-serif; 1.23 + font-size: 10px; 1.24 + } 1.25 + 1.26 + div.big { 1.27 + font-size: 20px; 1.28 + width: 50px; 1.29 + } 1.30 + 1.31 + .flexbox > * { 1.32 + clear: both; 1.33 + } 1.34 + 1.35 + /* Classes for each of the various align-self values */ 1.36 + .flex-start { 1.37 + background: lime; 1.38 + float: right; 1.39 + } 1.40 + .flex-end { 1.41 + background: orange; 1.42 + float: left; 1.43 + } 1.44 + .center { 1.45 + background: lightblue; 1.46 + margin: auto; 1.47 + } 1.48 + .baseline { 1.49 + background: teal; 1.50 + float: right; 1.51 + } 1.52 + .stretch { 1.53 + background: pink; 1.54 + width: 100%; 1.55 + } 1.56 + .auto { 1.57 + background: yellow; 1.58 + margin: auto; 1.59 + } 1.60 + .unspecified { 1.61 + background: lightgreen; 1.62 + margin: auto; 1.63 + } 1.64 + .initial { 1.65 + background: aqua; 1.66 + margin: auto; 1.67 + } 1.68 + .inherit { 1.69 + background: violet; 1.70 + float: left; 1.71 + } 1.72 + 1.73 + <!-- We center shrinkwrapped text by putting it into an inline-block, and 1.74 + then wrapping that inline-block in a helper-div that has 1.75 + "text-align:center" set. --> 1.76 + .centerParent { 1.77 + text-align: center; 1.78 + } 1.79 + .centerParent > * { 1.80 + display: inline-block; 1.81 + text-align: left; /* Keep parent's centering from tweaking my text */ 1.82 + } 1.83 + </style> 1.84 + </head> 1.85 + <body> 1.86 + <div class="flexbox"> 1.87 + <div class="flex-start">start</div> 1.88 + <div class="flex-start big">a b c d e f</div> 1.89 + <div class="flex-end">end</div> 1.90 + <div class="flex-end big">a b c d e f</div> 1.91 + <div class="centerParent"> 1.92 + <div class="center">center</div> 1.93 + </div> 1.94 + <div class="center big">a b c d e f</div> 1.95 + <div class="baseline">base</div> 1.96 + <div class="baseline big">abc</div> 1.97 + <div class="stretch">stretch</div> 1.98 + <div class="stretch big">a b c d e f</div> 1.99 + <div class="centerParent"> 1.100 + <div class="auto">auto</div> 1.101 + </div> 1.102 + <div class="centerParent"> 1.103 + <div class="unspecified">unspec</div> 1.104 + </div> 1.105 + <div class="centerParent"> 1.106 + <div class="initial">initial</div> 1.107 + </div> 1.108 + <div class="inherit">inherit</div> 1.109 + <!-- Since that last div is floated right, the container doesn't include 1.110 + its height by default. So we add some invisible hacky text (of the 1.111 + same font) to make sure our container is tall enough. --> 1.112 + <span style="visibility:hidden">hacky text</span> 1.113 + </div> 1.114 + </body> 1.115 +</html>