Skip to content

FixedLayer: Transfer elements on [hidden] toggle #17475

@dreamofabear

Description

@dreamofabear

Problem: Fixed elements that are initially hidden may have incorrect DOM ordering WRT fixed elements that are not initially hidden.

Proposed solution: Use MutationObserver to listen for tracked, fixed elements that are un-hidden dynamically by removing hidden attribute (e.g. via amp-bind or toggle/show actions). Transfer those elements to the fixed layer when they're un-hidden.

Context: b/111906735

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions