Skip to content

[css-pseudo] [css-content] [css-lists] Does the properties applied to elements apply to ::marker? #8894

@bleper

Description

@bleper

Considering the following:

The contents of the marker box are determined as defined by the content property, exactly as for ::before[CSS-LISTS]

contents: The element’s descendants [...] Check to see that it is not set on a "previous" pseudo-element, in the following order, depth first: the element itself, ::before, ::after — [CSS-CONTENT]

And:

<style>
   li {content: none;
      &::marker {content: contents}}
</style>
<ul>
   <li><p>
</ul>

Will what is mentioned in the title be true?


Also, what will happen in this case?

li {content: none;
   &::before {content: contents;
      &::marker {content: contents}}}

Will there be no duplication of elements here (which the specification is clearly trying to avoid)?

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