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-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,91 @@ 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, using floated divs 1.10 + in place of flex items and using margin-top in place of the align-items / 1.11 + align-self properties. --> 1.12 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.13 + <head> 1.14 + <title>CSS Reftest Reference</title> 1.15 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.16 + <style> 1.17 + .flexbox { 1.18 + border: 1px dashed blue; 1.19 + height: 200px; 1.20 + width: 560px; 1.21 + font-size: 10px; 1.22 + line-height: 10px; 1.23 + } 1.24 + 1.25 + .flexbox > div { 1.26 + width: 40px; 1.27 + float: left; 1.28 + } 1.29 + 1.30 + .big { 1.31 + height: 100px; 1.32 + font-size: 20px; 1.33 + line-height: 20px; 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 + } 1.40 + .flex-end { 1.41 + background: orange; 1.42 + } 1.43 + .center { 1.44 + background: lightblue; 1.45 + } 1.46 + .baseline { 1.47 + background: teal; 1.48 + } 1.49 + .stretch { 1.50 + background: pink; 1.51 + } 1.52 + .auto { 1.53 + background: yellow; 1.54 + } 1.55 + .unspecified { 1.56 + background: lightgreen; 1.57 + } 1.58 + .initial { 1.59 + background: aqua; 1.60 + } 1.61 + .inherit { 1.62 + background: violet; 1.63 + } 1.64 + </style> 1.65 + </head> 1.66 + <body> 1.67 + <div class="flexbox"> 1.68 + <div class="flex-start">start</div> 1.69 + <div class="flex-start big">a b c d e f</div> 1.70 + <div class="flex-end" style="margin-top: 190px">end</div> 1.71 + <div class="flex-end big" style="margin-top: 100px">a b c d e f</div> 1.72 + <div class="center" style="margin-top: 95px">center</div> 1.73 + <div class="center big" style="margin-top: 50px">a b c d e f</div> 1.74 + <!-- We use inline-blocks inside of a wrapper-block as references for the 1.75 + baseline-aligned flex items, since inline-blocks get 1.76 + baseline-aligned in block layout. We also need to specify the widths 1.77 + manually here since the "flexbox > div" child-selector doesn't 1.78 + handle these guys (since they're grandchildren). 1.79 + --> 1.80 + <div style="width: 80px"> 1.81 + <div class="baseline" 1.82 + style="width: 40px; display: inline-block">base</div 1.83 + ><div class="baseline big" 1.84 + style="width: 40px; display: inline-block">abc</div> 1.85 + </div> 1.86 + <div class="stretch" style="height: 100%">stretch</div> 1.87 + <div class="stretch big">a b c d e f</div> 1.88 + <div class="auto" style="margin-top: 95px">auto</div> 1.89 + <div class="unspecified" style="margin-top: 95px">unspec</div> 1.90 + <div class="initial" style="margin-top: 95px">initial</div> 1.91 + <div class="inherit" style="margin-top: 190px">inherit</div> 1.92 + </div> 1.93 + </body> 1.94 +</html>