Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rthrejheytjyrtj545 opened this issue Jun 1, 2023 · 1 comment

Comments

@rthrejheytjyrtj545
Copy link

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)?

@fantasai
Copy link
Collaborator

fantasai commented Jun 1, 2023

I think this brings up the question of, should we remove the contents value? I can't think of any use case for it that isn't satisfied by normal.

CC @MurakamiShinyu @faceless2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants