Closed Bug 1723039 Opened 4 years ago Closed 4 years ago

Remove code-comments about "fully inflexible" from flex item definiteness checks

Categories

(Core :: Layout: Flexbox, task, P3)

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file)

The flexbox spec has a note saying that fully-inflexible flex items with a definite flex-basis produce a definite main size.

We implemented this without the "fully-inflexible" requirement, due to webcompat needs, and I added code-comments about this disagreement from the spec here:
https://searchfox.org/mozilla-central/rev/699174544b058f13f02e7586b3c8fdbf438f084b/layout/generic/nsFlexContainerFrame.cpp#2167-2173
https://searchfox.org/mozilla-central/rev/699174544b058f13f02e7586b3c8fdbf438f084b/layout/generic/nsFlexContainerFrame.cpp#2130,2133-2135

Today the CSSWG resolved to match our behavior (to remove the fully-inflexible requirement) in https://github.com/w3c/csswg-drafts/issues/4311 , so we can remove these notes.

The CSSWG resolution is in https://github.com/w3c/csswg-drafts/issues/4311#issuecomment-889512146

The more-complete resolution is included in the IRC log, which is:

TabAtkins: we will add 4th condition to definiteness of flex items, that definite flex basis always make correspondign axis of flex item definite
TabAtkins: consequently can remove the note

DONTBUILD

This patch doesn't impact behavior; it's just removing code-comments that refer
to a requirement in the spec that we don't honor, & which the CSSWG has now
resolved to remove (which makes our existing behavior correct & no longer
noteworthy).

The CSSWG resolution is in https://github.com/w3c/csswg-drafts/issues/4311 .
The new text is yet-to-be-written, but the main takeaway is that the "fully
inflexible" requirement (which we ignore) has been removed; so now, any flex
item with a definite flex-basis should have its main-size considered to be
definite. (And this matches our implementation.)

Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/79f0883a85a5 Remove obsolete code-comments about our flexbox implementation disagreeing with spec (now that spec has changed). r=TYLin
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: