1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-align-self-horiz-1-table.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,99 @@ 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. --> 1.11 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.12 + <head> 1.13 + <title>CSS Test: Testing the various 'align-self' property values on flex items that are tables</title> 1.14 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.15 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/> 1.16 + <link rel="match" href="flexbox-align-self-horiz-1-ref.xhtml"/> 1.17 + <style> 1.18 + .flexbox { 1.19 + border: 1px dashed blue; 1.20 + height: 200px; 1.21 + display: inline-flex; 1.22 + font-size: 10px; 1.23 + line-height: 10px; 1.24 + 1.25 + /* Any children whose align-self is 'auto' (or unspecified, or 1.26 + initial) will end up taking this value from us: */ 1.27 + align-items: center; 1.28 + 1.29 + /* Any children whose align-self is 'inherit' will end up 1.30 + inheriting this value from us: */ 1.31 + align-self: flex-end; 1.32 + } 1.33 + 1.34 + .flexbox > * { 1.35 + display: table; 1.36 + width: 40px; 1.37 + } 1.38 + 1.39 + .big { 1.40 + height: 100px; 1.41 + font-size: 20px; 1.42 + line-height: 20px; 1.43 + } 1.44 + 1.45 + /* Classes for each of the various align-self values */ 1.46 + .flex-start { 1.47 + background: lime; 1.48 + align-self: flex-start; 1.49 + } 1.50 + .flex-end { 1.51 + background: orange; 1.52 + align-self: flex-end; 1.53 + } 1.54 + .center { 1.55 + background: lightblue; 1.56 + align-self: center; 1.57 + } 1.58 + .baseline { 1.59 + background: teal; 1.60 + align-self: baseline; 1.61 + } 1.62 + .stretch { 1.63 + background: pink; 1.64 + align-self: stretch; 1.65 + display: block; /* XXXdholbert Hackaround for bug 799725 */ 1.66 + } 1.67 + .auto { 1.68 + background: yellow; 1.69 + align-self: auto; 1.70 + } 1.71 + .unspecified { 1.72 + background: lightgreen; 1.73 + } 1.74 + .initial { 1.75 + background: aqua; 1.76 + align-self: initial; 1.77 + } 1.78 + .inherit { 1.79 + background: violet; 1.80 + align-self: inherit; 1.81 + } 1.82 + </style> 1.83 + </head> 1.84 + <body> 1.85 + <div class="flexbox"> 1.86 + <div class="flex-start">start</div> 1.87 + <div class="flex-start big">a b c d e f</div> 1.88 + <div class="flex-end">end</div> 1.89 + <div class="flex-end big">a b c d e f</div> 1.90 + <div class="center">center</div> 1.91 + <div class="center big">a b c d e f</div> 1.92 + <div class="baseline">base</div> 1.93 + <div class="baseline big">abc</div> 1.94 + <div class="stretch">stretch</div> 1.95 + <div class="stretch big">a b c d e f</div> 1.96 + <div class="auto">auto</div> 1.97 + <div class="unspecified">unspec</div> 1.98 + <div class="initial">initial</div> 1.99 + <div class="inherit">inherit</div> 1.100 + </div> 1.101 + </body> 1.102 +</html>