1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-intrinsic-sizing-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 +<!-- 1.10 + Reference case - see documentation in corresponding testcase. 1.11 + This reference uses blocks where the testcase uses flexboxes. 1.12 + They should be sized the same, since they're basically just text 1.13 + with no special flex sizing properties in play. 1.14 +--> 1.15 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.16 + <head> 1.17 + <link rel="stylesheet" type="text/css" href="ahem.css" /> 1.18 + <style> 1.19 + table { 1.20 + width: 300px; 1.21 + font: 10px Ahem; 1.22 + margin-bottom: 2px; 1.23 + border: 1px dashed black; 1.24 + } 1.25 + 1.26 + div.a { background: lightgreen; } 1.27 + div.b { background: lightblue; } 1.28 + 1.29 + <!-- helper-classes for assigning pref / min / auto-width to our divs --> 1.30 + div.prefWidth { 1.31 + width: -moz-max-content; 1.32 + } 1.33 + div.minWidth { 1.34 + width: -moz-min-content; 1.35 + } 1.36 + div.autoWidth { 1.37 + width: auto; 1.38 + } 1.39 + </style> 1.40 +</head> 1.41 +<body> 1.42 + <!-- both auto width --> 1.43 + <table cellpadding="0" cellspacing="0"><tr> 1.44 + <td><div class="a autoWidth">aaaa aaaa aaaaa</div></td> 1.45 + <td><div class="b autoWidth">bb bb b bb bb b bb b</div></td> 1.46 + </tr></table> 1.47 + 1.48 + <!-- MIXING MIN WIDTH & AUTO --> 1.49 + <!-- both min width --> 1.50 + <table cellpadding="0" cellspacing="0"><tr> 1.51 + <td><div class="a minWidth">aaaa aaaa aaaaa</div></td> 1.52 + <td><div class="b minWidth">bb bb b bb bb b bb b</div></td> 1.53 + </tr></table> 1.54 + <!-- min,auto --> 1.55 + <table cellpadding="0" cellspacing="0"><tr> 1.56 + <td><div class="a minWidth">aaaa aaaa aaaaa</div></td> 1.57 + <td><div class="b autoWidth">bb bb b bb bb b bb b</div></td> 1.58 + </tr></table> 1.59 + <!-- auto,min --> 1.60 + <table cellpadding="0" cellspacing="0"><tr> 1.61 + <td><div class="a autoWidth">aaaa aaaa aaaaa</div></td> 1.62 + <td><div class="b minWidth">bb bb b bb bb b bb b</div></td> 1.63 + </tr></table> 1.64 + 1.65 + <!-- MIXING PREF WIDTH & AUTO --> 1.66 + <!-- both prefWidth (NOTE: makes the table larger than it wants to be --> 1.67 + <table cellpadding="0" cellspacing="0"><tr> 1.68 + <td><div class="a prefWidth">aaaa aaaa aaaaa</div></td> 1.69 + <td><div class="b prefWidth">bb bb b bb bb b bb b</div></td> 1.70 + </tr></table> 1.71 + <!-- pref,auto --> 1.72 + <table cellpadding="0" cellspacing="0"><tr> 1.73 + <td><div class="a prefWidth">aaaa aaaa aaaaa</div></td> 1.74 + <td><div class="b autoWidth">bb bb b bb bb b bb b</div></td> 1.75 + </tr></table> 1.76 + <!-- auto,pref --> 1.77 + <table cellpadding="0" cellspacing="0"><tr> 1.78 + <td><div class="a autoWidth">aaaa aaaa aaaaa</div></td> 1.79 + <td><div class="b prefWidth">bb bb b bb bb b bb b</div></td> 1.80 + </tr></table> 1.81 + 1.82 + <!-- MIXING PREF WIDTH & MIN WIDTH --> 1.83 + <!-- min,pref --> 1.84 + <table cellpadding="0" cellspacing="0"><tr> 1.85 + <td><div class="a minWidth">aaaa aaaa aaaaa</div></td> 1.86 + <td><div class="b prefWidth">bb bb b bb bb b bb b</div></td> 1.87 + </tr></table> 1.88 + <!-- pref,min --> 1.89 + <table cellpadding="0" cellspacing="0"><tr> 1.90 + <td><div class="a prefWidth">aaaa aaaa aaaaa</div></td> 1.91 + <td><div class="b minWidth">bb bb b bb bb b bb b</div></td> 1.92 + </tr></table> 1.93 +</body> 1.94 +</html>