Skip to content

[css-lists][css-pseudo] the 'content' property should apply to ::marker #3499

Closed
@MatsPalmgren

Description

@MatsPalmgren

The spec for the content property says that it applies to tree-abiding pseudo-elements. ::marker is a tree-abiding pseudo-element, however it explicitly excludes the content property.

I think this is a mistake, the ::marker pseudo would be much more useful if content could be used on it. Making ::marker more like ::before/::after would also make it easier to understand, to specify and implement, since it wouldn't need to be treated specially. I think this would benefit all stake holders:

  • spec authors: could stop duplicating parts of content in list-style-image and list-style-type and instead share more spec text for ::marker/::before/::after.
  • implementors: instead of writing a lot of specialized code for "list markers", we could re-use the code we already have for ::before/::afterto also handle ::marker. This means less code to write and maintain.
  • authors: adding support for the content property would make ::marker significantly more powerful.
  • end users: hopefully, the improvements in all levels above will result in richer content and less buggy and more compatible browsers for users to enjoy.

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