Re: [csswg-drafts] [css-nesting] :selector-replace() pseudo-class function (#6330)

Yup, I'm pretty strongly of the opinion that at the point you feel like you need this sort of thing, you should be thinking about how to rewrite it to be simpler instead. "Limit your nesting to 3-4 deep" seems to be a pretty common and reasonable bit of advice in the CSS preprocessor world, and when you're at that point the pain of possible repetition is low compared to the gain of remaining straightforward and readable.

At *minimum*, I'd block this from the first version of Nesting; we can always add it in a Nesting 2 if, after wide usage, it seems like it's still something useful and necessary.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6330#issuecomment-1029504562 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 February 2022 23:42:10 UTC