Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

> Why not adopt the SCSS syntax entirely ?

Blink implementers refused to consider it. @emilio said it could have been feasible for Gecko. See #7961 where I spent a fair bit of my time trying to come up with a solution that involves only a minimal performance hit (the backtracking would be limited to only `element:pseudo` nested selectors, which are fairly rare in nested stylesheets). This was the response from @sesse : 

> I don't share this goal; I would like us to just get the syntax (any syntax) specified, out the door and be done with it. So no, I won't be spending resources trying to bend our minds around how we tokenize CSS to this avail; I can NAK what is a non-starter for us, and that's what you'll get.

He also mentioned having to give up some performance optimizations to go that route, without responding to [my question asking what they are](https://github.com/w3c/csswg-drafts/issues/7961#issuecomment-1293904534) so it could be more widely examined if they'd really need to go.

But hey, at least the syntax we (thus far) went with allows for the syntax to be relaxed in the future (perhaps once it becomes obvious to everyone how much that would increase developer ergonomics).

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


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

Received on Thursday, 3 November 2022 16:26:13 UTC