8000 [css-content] Description about <content-replacement> doesn't match what implementations do for pseudo-elements · Issue #2657 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-content] Description about <content-replacement> doesn't match what implementations do for pseudo-elements #2657

@upsuper

Description

@upsuper

The spec currently says that <content-replacement> value should:

Makes the element or pseudo-element a replaced element, filled with the specified <image>. Its normal contents are suppressed and do not generate boxes, as if they were display: none.

And there is a note in <content-list> value mentioning:

If the value of <content-list> is a single <image>, it must instead be interpreted as a <content-replacement>.

This doesn't match what content with a single url means in CSS 2, nor how it is implemented in browsers.

Given #2656, I would suggest that we make the single url mean <content-list> for pseudo-element, and <content-replacement> only for elements.

[ Edited by @dbaron to add some missing backticks in the second quoted section. ]

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

      0