Skip to content

[css-display][css-pseudo] Clearly define display: contents behaviour on pseudo-elements #6518

Closed
@nt1m

Description

@nt1m

https://drafts.csswg.org/css-display/#box-generation

https://drafts.csswg.org/css-pseudo/

While working on display: contents handling for ::backdrop (which has clearly defined rules), I noticed it is not well defined for pseudo elements in general, and behaviour is inconsistent across different browsers (notably for ::marker or ::file-selector-button). Should we try and make some easy to understand rules?

It would be convenient if those rules were based on spec concepts, e.g. "tree-abiding pseudo-elements", "Typographic Pseudo-elements". "highlight pseudo-elements".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions