You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the insertRule special-case is wrong, as per discussion... Parse declarations ~never fails (spec wise), it just returns an empty declaration list, so something like insertRule("yadayada") would not throw, just create an empty CSSNestedDeclarations object...
Easiest fix would be to check if the declaration list is not empty or so, though it seems that'd cause some other weird behavior like unknown-property: foo throwing, but unknown-property: foo; color: red working (and having a single declaration). I guess it's not too bad tho...
With that tweak or something along those lines resolved on by the CSSWG, this looks acceptable to me (kinda reluctantly).
I still think it's a really weird set-up, but given the discussions and that this is still better than the status quo, I guess positive is fine? Thanks for pushing this forward :)
Request for Mozilla Position on an Emerging Web Specification
@
-mention GitHub accounts): @fantasai et al.Other information
See also:
@nest
: CSS Nesting: @nest #1013The text was updated successfully, but these errors were encountered: