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-4.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 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 shorter than its items. --> 1.12 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.13 + <head> 1.14 + <title>CSS Test: Testing the behavior of 'align-self' with a horizontal flex container that's shorter than its items, with margin/padding/border on the items</title> 1.15 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.16 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#align-items-property"/> 1.17 + <link rel="match" href="flexbox-align-self-horiz-4-ref.xhtml"/> 1.18 + <style> 1.19 + .flexbox { 1.20 + border: 1px dashed blue; 1.21 + padding: 3px; 1.22 + height: 4px; 1.23 + display: inline-flex; 1.24 + font-size: 10px; 1.25 + line-height: 10px; 1.26 + font-family: sans-serif; 1.27 + margin-top: 20px; 1.28 + margin-bottom: 120px; 1.29 + vertical-align: top; 1.30 + } 1.31 + 1.32 + .flexbox > div { 1.33 + width: 40px; 1.34 + margin: 1px 2px 3px 4px; 1.35 + border-width: 2px 3px 4px 5px; 1.36 + padding: 3px 4px 5px 6px; 1.37 + border-style: dotted; 1.38 + } 1.39 + 1.40 + .big { 1.41 + height: 100px; 1.42 + font-size: 20px; 1.43 + line-height: 20px; 1.44 + } 1.45 + 1.46 + /* Classes for each of the various align-self values */ 1.47 + .flex-start { 1.48 + background: lime; 1.49 + align-self: flex-start; 1.50 + } 1.51 + .flex-end { 1.52 + background: orange; 1.53 + align-self: flex-end; 1.54 + } 1.55 + .center { 1.56 + background: lightblue; 1.57 + align-self: center; 1.58 + } 1.59 + .baseline { 1.60 + background: teal; 1.61 + align-self: baseline; 1.62 + } 1.63 + .stretch { 1.64 + background: pink; 1.65 + min-height: 2px; 1.66 + align-self: stretch; 1.67 + } 1.68 + </style> 1.69 + </head> 1.70 + <body> 1.71 + <div class="flexbox"> 1.72 + <div class="flex-start">start</div> 1.73 + <div class="flex-start big">a b c d e f</div> 1.74 + <div class="flex-end">end</div> 1.75 + <div class="flex-end big">a b c d e f</div> 1.76 + <div class="center">center</div> 1.77 + <div class="center big">a b c d e f</div> 1.78 + </div> 1.79 + <br/> 1.80 + <div class="flexbox"> 1.81 + <div class="baseline">base</div> 1.82 + <div class="baseline big">abc</div> 1.83 + <div class="stretch">stretch</div> 1.84 + <div class="stretch big">a b c d e f</div> 1.85 + </div> 1.86 + </body> 1.87 +</html>