@bramus Is there somewhere I can follow along with that? is CSSNestedDeclarations solely for that declaration-after-other-nesting situation?
That specificity attribute, is that a you-think or is that also coming natively?
Top-level
@bramus Is there somewhere I can follow along with that? is CSSNestedDeclarations solely for that declaration-after-other-nesting situation? That specificity attribute, is that a you-think or is that also coming natively? 3 comments
@bramus I like this solution a lot, but as a devtools builder it's annoying the number of in-flight revisions nesting is getting ;) |
@Kilian Awaiting the blog post I am currently finishing, you can check the spec [^1] which has some info boxes on why you need `CSSNestedDeclarations`.
Mainly to fix the shifting up behavior but also some other side-effects from before.
I manually added the `specificity` and `resolvedSelectorText` attributes for demonstration purposes. Added a note in the demo itself to clarify that.
[^1]: https://drafts.csswg.org/css-nesting/#nested-declarations-rule