mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00

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
54 lines
862 B
HTML
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>
|