-
Notifications
You must be signed in to change notification settings - Fork 715
[css-contain] Do scoped counters create new counters? #1887
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
Comments
OK, since But note that CSS Lists will allow Maybe you should scope |
The Working Group just discussed
The full IRC log of that discussion<fantasai> Topic: Scoped Counters<astearns> github: https://github.com//issues/1887 <fantasai> TabAtkins: If you have a style scoped element, which says counters are scoped to the subtree <fantasai> TabAtkins: does that create a new counter? <fantasai> s/that/counter-increment/ <fremy> +1 on this one <fantasai> TabAtkins: or does it increment the existing counter from the outside <fantasai> TabAtkins: I think it should implicitly create a new counter scope at the style scoping root <fantasai> fantasai: And so counters() would reveal a new level of counter? <fantasai> TabAtkins: yes <fantasai> TabAtkins: Don't want to fuss with the subtree when calculating counters further down in the document <fantasai> fantasai: so you're disagreeing with Oriol's comment? <fantasai> TabAtkins: ... <fantasai> astearns: Write a test? <TabAtkins> s/.../yes/ <fantasai> astearns: So proposed to implicitly create new counter scopes at style scoping root for style containment <fantasai> RESOLVED: create new counter scopes at style scoping root for style containment |
@Loirooriol The resolution agrees with you that it needs to be defined, but defines it differently from what you suggested. Please confirm that this outcome is acceptable to you. |
The behavior is acceptable, but I think the spec is a bit confusing because it says that
but then |
I guess the problem is that it says that |
@Loirooriol I opened #2483 to follow up on this. |
Yes, that's the problem. BTW, Chrome outputs |
Test the spec changes / clarifications from w3c/csswg-drafts#1887 w3c/csswg-drafts#2483
From Style Containment,
But it's not much clear if a scoped
counter-increment
creates a new counter or not.That is, what is the expected output of
Is it
1.2
or just2
?The text was updated successfully, but these errors were encountered: