gecko-dev/layout/reftests/webkit-box/webkit-box-with-modern-css-1-ref.html
Daniel Holbert b137f93e10 Bug 1387152 part 2: Don't let unrelated property "flex-basis" influence the sizing inside of -webkit-box containers. r=mats
We use nsFlexContainerFrame (our modern flexbox implementation) to emulate
-webkit-box, and we use a frame state bit to tell us whether to use
modern-flexbox properties vs. legacy properties.  Up until this patch, we
neglected to check that state bit when determining whether to use the modern
"flex-basis" property for sizing.  This patch makes us *not* use that property
(and just use the axis-appropriate width/height property instead) for legacy
-webkit-box containers.

MozReview-Commit-ID: 14bzOCPCtUY

--HG--
extra : rebase_source : 0091761ba3aff64030a3301d9b60fb9401aa77b3
2017-08-03 11:18:13 -07:00

54 lines
862 B
HTML

<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<title>
CSS Reference
</title>
<style>
.box {
display: flex;
border: 1px solid black;
margin: 5px 20px;
width: 100px;
float: left; /* For testing in "rows" */
font: 10px serif;
}
.box > *:nth-child(1) { background: turquoise; }
.box > *:nth-child(2) { background: salmon; }
br { clear: both; }
</style>
</head>
<body>
<!-- FIRST ROW -->
<div class="box">
<div>a</div>
<div>b</div>
</div>
<div class="box">
<div>a</div>
<div>b</div>
</div>
<br>
<!-- SECOND ROW -->
<div class="box">
<div>a</div>
<div>b</div>
</div>
<div class="box">
<div>a</div>
<div>b</div>
</div>
</body>
</html>