1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-widget-flex-items-4.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,46 @@ 1.4 +<!DOCTYPE html> 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 +<!-- 1.10 + This testcase checks that, for any widgets that have a single valid size 1.11 + (and hence refuse to flex), we don't stretch them in the cross-axis, 1.12 + despite the "align-self: stretch" property. 1.13 + 1.14 + These widgets can be allowed to be resized on some platforms but not others. 1.15 + We'll account for that by giving them height: 100% in the reference case, 1.16 + so that if they're allowed to stretch, then they'll stretch in both the 1.17 + reference case and the testcase. 1.18 +--> 1.19 +<html> 1.20 +<head> 1.21 + <style> 1.22 + div.flexbox { 1.23 + display: flex; 1.24 + background: lightgray; 1.25 + float: left; 1.26 + height: 60px; 1.27 + margin-right: 10px; 1.28 + } 1.29 + div.flexbox > * { 1.30 + outline: 1px dashed black; 1.31 + margin: 0; 1.32 + vertical-align: top; 1.33 + height: auto; 1.34 + align-self: stretch; 1.35 + } 1.36 + br { clear: left; } 1.37 + </style> 1.38 +</head> 1.39 +<body> 1.40 + <div class="flexbox"><input type="button"></div> 1.41 + <div class="flexbox"><input type="checkbox"></div> 1.42 + <br> 1.43 + <div class="flexbox"><input type="image"></div> 1.44 + <div class="flexbox"><input type="radio"></div> 1.45 + <br> 1.46 + <div class="flexbox"><input type="reset"></div> 1.47 + <div class="flexbox"><input type="submit"></div> 1.48 +</body> 1.49 +</html>