Allows custom counter styles (@counter-style rules) to be defined with shadow trees, and properly referenced within shadow trees or across shadow boundaries.
Currently, if we want to use a custom counter style in shadow trees, the counter style must be defined in the global namespace (i.e., in the light DOM), which breaks encapsulation. This can be fixed if we allow shadow trees to define their own custom counter styles and handle name scoping and conflicts correctly.
Status in Chromium
In developer trial (Behind a flag) (tracking bug) in:
- Chrome for desktop release 94
- Chrome for Android release 94
- Android WebView release 94
Consensus & Standardization
Intent to Prototype urlIntent to Prototype thread
Search tagscss, counter, counter-style, shadow,
Last updated on 2021-07-27