Email or username:

Password:

Forgot your password?
Top-level
Kilian Valkhof

@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

@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/#

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