Skip to content

[css-display] Define interaction of display:contents and replaced elements #540

Closed
@zcorpan

Description

@zcorpan

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

w3c/csswg-test#1129

It was not clear to me from the spec what the expected result of applying display:contents to replaced elements is. The added test for replace contents matches what Gecko implemented.

The implemented behavior seems to be that display:contents on replaced elements and form controls (not all of those are actually replaced elements) is ignored, as far as I can tell.

cc @rune-opera @tabatkins @fantasai

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions