1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-intrinsic-sizing-horiz-2a.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 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 +<!-- 1.10 + This test checks how a flexbox sizes itself to shrinkwrap its contents' 1.11 + preferred sizes. 1.12 +--> 1.13 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.14 + <head> 1.15 + <style> 1.16 + body { margin: 0; } 1.17 + div.flexbox { 1.18 + display: flex; 1.19 + width: -moz-max-content; 1.20 + 1.21 + /* We give the flexbox a border and background so we can easily see how 1.22 + * large it is. */ 1.23 + border: 2px dotted black; 1.24 + background: lime; 1.25 + } 1.26 + 1.27 + div.imgWrapper { 1.28 + border: 5px solid teal; 1.29 + width: 40px; 1.30 + height: 16px; 1.31 + } 1.32 + img { 1.33 + vertical-align: top; 1.34 + } 1.35 + </style> 1.36 +</head> 1.37 +<body> 1.38 + <div class="flexbox"> 1.39 + <div class="imgWrapper"><img src="solidblue.png"/></div> 1.40 + <div class="imgWrapper"><img src="solidblue.png"/></div> 1.41 + <div class="imgWrapper"><img src="solidblue.png"/></div> 1.42 + </div> 1.43 +</body> 1.44 +</html>