Closed Bug 1990448 Opened 4 months ago Closed 4 months ago

-moz-subtree-hidden-only-visually doesn't work on out of flows.

Categories

(Core :: Web Painting, defect, P3)

defect
Points:
1

Tracking

()

RESOLVED FIXED
145 Branch
Tracking Status
firefox145 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Blocks 1 open bug)

Details

(Whiteboard: [anchorpositioning:m2])

Attachments

(2 files)

We plan to use something very similar to implement position-visibility. Also the split view implementation might need it for <tabpanels> (I took a look at making the content area use abspos rather than grid, and hit this).

No behavior change, but this saves some per-child work and conceptually
is the right thing to do. HidesContent() is non-trivial.

Add an assertion to make sure we don't enter BuildDisplayListForChild
at all if content is hidden.

I audited all the callers, and the ones I didn't touch can't have
content-visibility (things like the viewport / pages / etc).

Placeholders don't have the right style. This fixes
-moz-subtree-hidden-only-visually on out of flows, which is currently
not used but might be needed for the front-end.

Unfortunately this is restricted currently to the parent process, which
means that my attempt at a reftest didn't work... I could write a
browser test by absolutely positioning a tab panel or something but that
seems a bit clunky...

Whiteboard: [anchorpositioning:triage]
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
Points: --- → 1
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:m2]
QA Whiteboard: [qa-triage-done-c146/b145]
Depends on: 1996457
No longer depends on: 1996457
Regressions: 1996457
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: