зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 37e0c017b268 (bug 1090031) for reftest failures a=backout
This commit is contained in:
Родитель
2337995bb0
Коммит
5c9e53976d
|
@ -2781,15 +2781,11 @@ CrossAxisPositionTracker::
|
|||
// XXX strip of the <overflow-position> bit until we implement that
|
||||
mAlignContent &= ~NS_STYLE_ALIGN_FLAG_BITS;
|
||||
|
||||
const bool isSingleLine =
|
||||
NS_STYLE_FLEX_WRAP_NOWRAP == aReflowInput.mStylePosition->mFlexWrap;
|
||||
if (isSingleLine) {
|
||||
MOZ_ASSERT(!aFirstLine->getNext(),
|
||||
"If we're styled as single-line, we should only have 1 line");
|
||||
if (!aFirstLine->getNext()) {
|
||||
// "If the flex container is single-line and has a definite cross size, the
|
||||
// cross size of the flex line is the flex container's inner cross size."
|
||||
//
|
||||
// SOURCE: https://drafts.csswg.org/css-flexbox/#algo-cross-line
|
||||
// SOURCE: http://dev.w3.org/csswg/css-flexbox/#algo-line-break
|
||||
// NOTE: This means (by definition) that there's no packing space, which
|
||||
// means we don't need to be concerned with "align-conent" at all and we
|
||||
// can return early. This is handy, because this is the usual case (for
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
<!-- flex-end -->
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-top: 190px"/>
|
||||
<div class="a"/>
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-top: 160px"/>
|
||||
|
@ -85,7 +85,7 @@
|
|||
|
||||
<!-- center -->
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-top: 95px"/>
|
||||
<div class="a"/>
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-top: 80px"/>
|
||||
|
@ -113,7 +113,7 @@
|
|||
|
||||
<!-- space-around -->
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-top: 95px"/>
|
||||
<div class="a"/>
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-top: 40px"/>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
<!-- flex-end -->
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-left: 190px"/>
|
||||
<div class="a"/>
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-left: 160px"/>
|
||||
|
@ -88,7 +88,7 @@
|
|||
|
||||
<!-- center -->
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-left: 95px"/>
|
||||
<div class="a"/>
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-left: 80px"/>
|
||||
|
@ -116,7 +116,7 @@
|
|||
|
||||
<!-- space-around -->
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-left: 95px"/>
|
||||
<div class="a"/>
|
||||
</div>
|
||||
<div class="flexbox">
|
||||
<div class="a" style="margin-left: 40px"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче