- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 17 Oct 2017 14:43:58 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-contain] Do scoped counters create new counters? == >From [Style Containment](https://drafts.csswg.org/css-contain/#containment-style), > For example, if `counter-increment` is scoped to an element, the first use of it within the subtree acts as if the named counter were set to 0 at the scoping element, regardless of whether the counter had been used outside the scoping element. Any increments made within the subtree have no effect on counters of the same name outside the scoping element. But it's not much clear if a scoped `counter-increment` [creates a new counter](https://drafts.csswg.org/css-lists/#create-a-new-counter) or not. That is, what is the expected output of ```html <div></div> ``` ```css div { contain: style; counter-increment: n; } div::before { counter-increment: n 2; content: counters(n, '.'); } ``` Is it `1.2` or just `2`? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1887 using your GitHub account
Received on Tuesday, 17 October 2017 14:44:11 UTC