Closed Bug 1797752 Opened 2 years ago Closed 2 years ago

Ensure container queries make forward progress (with scrollbars / pseudos)

Categories

(Core :: CSS Parsing and Computation, defect, P2)

defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Crash Data

Attachments

(1 file)

There are a few tests that time out infinite-looping because we don't find a stable layout. We should make sure we only make forward progress.

(emilio noted that this is related to https://github.com/w3c/csswg-drafts/issues/7875 )

The severity field is not set for this bug.
:jfkthame, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jfkthame)
Assignee: nobody → emilio
Severity: -- → S3
Flags: needinfo?(jfkthame)
Priority: -- → P2

Instead of keeping a set of frames to update, keep a depth-ordered frame
list. Factor out the DirtyRootList for this.

Make sure that we're updating ancestor containers before children, and
make sure to store the last container state even if we end up not
updating (due to the element being in mUpdatedContainerQueryContents),
so that following layouts are stable.

This fixes the timeout in inline-size-bfc-floats, and the same kind of
instability in auto-scrollbars.html (if you take a profile of that test
you can see us infinitely recursing), as well as fixing various other
tests.

It causes a regression in nested-query-containers.html, probably to do with
ib-splits (since it's a block inside an inline and so on, and the frame
tree depth doesn't match the content tree depth, most likely). That
might need extra tweaks but it doesn't seem terribly concerning, so I'd
rather get this in.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/52076feb5b59
Make sure container queries make forward progress. r=Oriol
Pushed by emilio@crisal.io:
https://hg.mozilla.org/integration/autoland/rev/674c4b734b8c
Fix a comment as per review feedback that I missed.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Regressions: 1807993
Duplicate of this bug: 1807944

Copying crash signatures from duplicate bugs.

Crash Signature: [@ MemoryAccess] [@ nsPresContext::Document]
Regressions: 1836558
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: