-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
Closed Accepted by CSSWG Resolutioncss-lists-3Current WorkCurrent Workcss-pseudo-4Current WorkCurrent Work
Description
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
contentin 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
contentproperty would make::markersignificantly 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.
hftf, jonjohnjohnson, robinwhittleton, Loirooriol, frivoal and 3 more
Metadata
Metadata
Assignees
Labels
Closed Accepted by CSSWG Resolutioncss-lists-3Current WorkCurrent Workcss-pseudo-4Current WorkCurrent Work