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-5.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,104 @@ 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 auto margins in 1.10 + play (which should negate the effects of align-items / align-self, 1.11 + because there won't be any available space in which to align the item 1.12 + after the auto margins are resolved). --> 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 auto margins in play, in a horizontal flex container</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/#auto-margins"/> 1.18 + <link rel="match" href="flexbox-align-self-horiz-5-ref.xhtml"/> 1.19 + <style> 1.20 + .flexbox { 1.21 + border: 1px dashed blue; 1.22 + height: 140px; 1.23 + width: 400px; 1.24 + display: flex; 1.25 + font-size: 10px; 1.26 + line-height: 10px; 1.27 + margin-bottom: 10px; 1.28 + } 1.29 + 1.30 + .kidsAutoTop > div { margin-top: auto; } 1.31 + .kidsAutoBottom > div { margin-bottom: auto; } 1.32 + .kidsAutoBoth > div { margin: auto 0; } 1.33 + 1.34 + .flexbox > div { 1.35 + width: 40px; 1.36 + } 1.37 + 1.38 + .flexbox > div.big { 1.39 + height: 80px; 1.40 + font-size: 20px; 1.41 + line-height: 20px; 1.42 + } 1.43 + 1.44 + /* Classes for each of the various align-self values */ 1.45 + .flex-start { 1.46 + background: lime; 1.47 + align-self: flex-start; 1.48 + } 1.49 + .flex-end { 1.50 + background: orange; 1.51 + align-self: flex-end; 1.52 + } 1.53 + .center { 1.54 + background: lightblue; 1.55 + align-self: center; 1.56 + } 1.57 + .baseline { 1.58 + background: teal; 1.59 + align-self: baseline; 1.60 + } 1.61 + .stretch { 1.62 + background: pink; 1.63 + align-self: stretch; 1.64 + } 1.65 + </style> 1.66 + </head> 1.67 + <body> 1.68 + <div class="flexbox kidsAutoTop"> 1.69 + <div class="flex-start">start</div> 1.70 + <div class="flex-start big">a b c d e f</div> 1.71 + <div class="flex-end">end</div> 1.72 + <div class="flex-end big">a b c d e f</div> 1.73 + <div class="center">center</div> 1.74 + <div class="center big">a b c d e f</div> 1.75 + <div class="baseline">base</div> 1.76 + <div class="baseline big">a b c d e f</div> 1.77 + <div class="stretch">stretch</div> 1.78 + <div class="stretch big">a b c d e f</div> 1.79 + </div> 1.80 + 1.81 + <div class="flexbox kidsAutoBottom"> 1.82 + <div class="flex-start">start</div> 1.83 + <div class="flex-start big">a b c d e f</div> 1.84 + <div class="flex-end">end</div> 1.85 + <div class="flex-end big">a b c d e f</div> 1.86 + <div class="center">center</div> 1.87 + <div class="center big">a b c d e f</div> 1.88 + <div class="baseline">base</div> 1.89 + <div class="baseline big">a b c d e f</div> 1.90 + <div class="stretch">stretch</div> 1.91 + <div class="stretch big">a b c d e f</div> 1.92 + </div> 1.93 + 1.94 + <div class="flexbox kidsAutoBoth"> 1.95 + <div class="flex-start">start</div> 1.96 + <div class="flex-start big">a b c d e f</div> 1.97 + <div class="flex-end">end</div> 1.98 + <div class="flex-end big">a b c d e f</div> 1.99 + <div class="center">center</div> 1.100 + <div class="center big">a b c d e f</div> 1.101 + <div class="baseline">base</div> 1.102 + <div class="baseline big">a b c d e f</div> 1.103 + <div class="stretch">stretch</div> 1.104 + <div class="stretch big">a b c d e f</div> 1.105 + </div> 1.106 + </body> 1.107 +</html>