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

Yes, `1, 1.2` is the correct rendering.

The ::before 'content' sees only a single counter, established outside the style boundary (on the `div`), so it will print `1`.  The ::after pseudo tries to increment the counter, but it's within the style boundary, so it instead creates a new counter and nests it; the the 'content' property sees two nested counters, and will print `1.2`.

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

Received on Wednesday, 11 April 2018 07:47:07 UTC