Re: [css-houdini-drafts] Specificity API (#96)

I was surprised to see that the css typed om spec did not include a selector class. Currently, APIs like `CSSStyleSheet.insertRule()` and `CSSStyleRule.selectorText` all represent selectors as strings. But especially with shadow roots, I see many use cases for manually constructing and inspecting these. For example, I may want to copy all rules for a `.btn` class in a stylesheet to a shadow root. For that, I currently need to filter rules by a regex on the selector.

-- 
GitHub Notification of comment by felixfbecker
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/96#issuecomment-467782104 using your GitHub account

Received on Wednesday, 27 February 2019 09:06:51 UTC