Re: [csswg-drafts] [css-contain] Scoping of the content property unclear.

I agree. To better describe that effect, I suspect changing the spec from:

> Giving an element style containment has the following effect:
> 
> 1.    The counter-increment, counter-set, and content (for the purpose of open-quote/etc values) properties must be scoped to the element’s sub-tree.
>
> [...]
>
> When scoped, the counter-set and counter-increment create a new counter.

to

> Giving an element style containment has the following effect:
> 
>  1. The `counter-increment` and `counter-set` properties must be scoped to the element’s sub-tree, and create a new counter.
> 2. The effects of the `content` property's `open-quote`, `close-quote`, `no-open-quote` and `no-close-quote` must be scoped to the element’s sub-tree: the depth of quote nesting in the subtree starts at 0 regardless of its value outside the subtree, and changes to the depth of quote nesting by these values inside the subtree do not affect the depth of quote nesting outside the subtree.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2483#issuecomment-379124749 using your GitHub account

Received on Friday, 6 April 2018 01:41:00 UTC