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-3-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,93 @@ 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 relative positioning in place of the 1.11 + align-items / 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 + padding: 3px; 1.20 + width: 560px; 1.21 + height: 4px; 1.22 + font-size: 10px; 1.23 + line-height: 10px; 1.24 + font-family: sans-serif; 1.25 + } 1.26 + 1.27 + .flexbox > div { 1.28 + width: 40px; 1.29 + float: left; 1.30 + } 1.31 + 1.32 + .big { 1.33 + height: 100px; 1.34 + font-size: 20px; 1.35 + line-height: 20px; 1.36 + } 1.37 + 1.38 + /* Classes for each of the various align-self values */ 1.39 + .flex-start { 1.40 + background: lime; 1.41 + } 1.42 + .flex-end { 1.43 + background: orange; 1.44 + } 1.45 + .center { 1.46 + background: lightblue; 1.47 + } 1.48 + .baseline { 1.49 + background: teal; 1.50 + } 1.51 + .stretch { 1.52 + background: pink; 1.53 + } 1.54 + .auto { 1.55 + background: yellow; 1.56 + } 1.57 + .unspecified { 1.58 + background: lightgreen; 1.59 + } 1.60 + .initial { 1.61 + background: aqua; 1.62 + } 1.63 + .inherit { 1.64 + background: violet; 1.65 + } 1.66 + </style> 1.67 + </head> 1.68 + <body> 1.69 + <div class="flexbox"> 1.70 + <div class="flex-start">start</div> 1.71 + <div class="flex-start big">a b c d e f</div> 1.72 + <div class="flex-end" style="position: relative; top: -6px">end</div> 1.73 + <div class="flex-end big" style="position: relative; top: -96px">a b c d e f</div> 1.74 + <div class="center" style="position: relative; top: -3px">center</div> 1.75 + <div class="center big" style="position: relative; top: -48px">a b c d e f</div> 1.76 + <!-- We use inline-blocks inside of a wrapper-block as references for the 1.77 + baseline-aligned flex items, since inline-blocks get 1.78 + baseline-aligned in block layout. We also need to specify the widths 1.79 + manually here since the "flexbox > div" child-selector doesn't 1.80 + handle these guys (since they're grandchildren). 1.81 + --> 1.82 + <div style="width: 80px"> 1.83 + <div class="baseline" 1.84 + style="width: 40px; display: inline-block">base</div 1.85 + ><div class="baseline big" 1.86 + style="width: 40px; display: inline-block">abc</div> 1.87 + </div> 1.88 + <div class="stretch" style="height: 100%">stretch</div> 1.89 + <div class="stretch big">a b c d e f</div> 1.90 + <div class="auto" style="height: 100%">auto</div> 1.91 + <div class="unspecified" style="height: 100%">unspec</div> 1.92 + <div class="initial" style="height: 100%">initial</div> 1.93 + <div class="inherit" style="height: 100%">inherit</div> 1.94 + </div> 1.95 + </body> 1.96 +</html>