1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-align-self-baseline-horiz-3.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 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 behavior of the 'baseline' value for align-items (and 1.10 + align-self, implicitly). This test has various types of baseline-aligned 1.11 + content, and the flexbox's vertical size depends on the aggregate 1.12 + post-alignment height of its children. 1.13 + 1.14 + This test checks baseline-alignment for text <button>, for 1.15 + various <input> fields, for <label>, and for <fieldset>. 1.16 +--> 1.17 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.18 + <head> 1.19 + <style> 1.20 + .flexbox { 1.21 + display: flex; 1.22 + align-items: baseline; 1.23 + border: 1px dashed blue; 1.24 + font: 14px sans-serif; 1.25 + } 1.26 + 1.27 + .big { 1.28 + height: 100px; 1.29 + font: 24px sans-serif; 1.30 + margin-top: 20px; 1.31 + } 1.32 + 1.33 + .lime { background: lime; } 1.34 + .pink { background: pink; } 1.35 + .aqua { background: aqua; } 1.36 + </style> 1.37 + </head> 1.38 + <body> 1.39 + <div class="flexbox"> 1.40 + <div class="lime">text</div> 1.41 + <button>btn</button> 1.42 + <input type="radio"/> 1.43 + <input type="checkbox"/> 1.44 + <label class="pink">label</label> 1.45 + <label class="aqua">lab<br/>el</label> 1.46 + <fieldset>field<br/>set</fieldset> 1.47 + <fieldset><legend>leg</legend>field<br/>set</fieldset> 1.48 + <fieldset><legend>leg<br/>end</legend>field<br/>set</fieldset> 1.49 + </div> 1.50 + </body> 1.51 +</html>