Closed Bug 1962471 Opened 9 months ago Closed 3 months ago

Implement mechanism cache/store the result of `position-visibility` evaluation

Categories

(Core :: Layout: Positioned, enhancement)

enhancement
Points:
1

Tracking

()

RESOLVED DUPLICATE of bug 1962472

People

(Reporter: dshin, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [anchorpositioning:m3])

For any element using position-visibility (And/or position-try-fallbacks), we need to store information on if the positioned element should remain visible, like we do for content-visibility: auto.

This information should be consulted by relevant abs-positioned elements to determine if they should be strongly hidden, which will be handled in bug 1962472

Summary: Implement mechanism to evaluate `position-visibility` in at ResizeObserver event time → Implement mechanism to evaluate `position-visibility` at ResizeObserver event time
Blocks: 1962472
Blocks: 1924231
Blocks: 1924233
Blocks: 1953529
No longer blocks: 1962472
Depends on: 1962472
No longer depends on: 1909341
Blocks: 1962472
No longer depends on: 1962472
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Whiteboard: [anchorpositioning:triage] → [anchorpositioning:m2]
No longer blocks: 1924231
No longer blocks: 1953529
No longer blocks: 1962472
No longer blocks: 1924233
Blocks: 1987947
Blocks: 1909341
No longer blocks: 1987947
Summary: Implement mechanism to evaluate `position-visibility` at ResizeObserver event time → Implement mechanism cache/store the result of `position-visibility` evaluation
Points: --- → 1
Assignee: dshin → nobody
Status: ASSIGNED → NEW
Whiteboard: [anchorpositioning:m2] → [anchorpositioning:reserve]

(Adding discussions with :tlouw from bug 1953529 work)
To be called from probably ShouldSkipFrame or similar.
That is a hot path, and frame property may slow us down with its consistent linear lookups. Frame bits are ideal but we're out of space there. Maybe we can recycle one?

The fix of bug 1962472 was determined to be enough to not require this any more. Could be reopened if needed.

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1962472
Resolution: --- → DUPLICATE
Whiteboard: [anchorpositioning:reserve] → [anchorpositioning:m3]
You need to log in before you can comment on or make changes to this bug.