Email or username:

Password:

Forgot your password?
Top-level
Bramus

@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]: drafts.csswg.org/css-nesting/#

2 comments
Kilian Valkhof

@bramus if you ever make a CSSWG proposal for that you have my +1 ;)

Kilian Valkhof

@bramus I like this solution a lot, but as a devtools builder it's annoying the number of in-flight revisions nesting is getting ;)

Go Up