Re: [csswg-drafts] [css-nesting-1] Should code portability trump coding habits wrt nesting syntax? (#8029)

> is that it provides full interoperability between contexts: you can take any CSS code you have today, wrap it in a block, add a selector prefix, and now you have "nested" the existing code without having to make any change.

I am confused by this statement.
It says that you do not need to make any change while outlining the changes you need to make.

-------

`} {`

I don't think any authors will like writing this at the end of a declaration.
- if you want to add one more declaration you need to move `} {` to the next one.
- if you re-order declarations the block breaks.
- if you copy/paste that line it will need to be changed.

In general I also find that typing `} {` in that order is awkward.
People will get used to it, but it is uncommon today.

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


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

Received on Wednesday, 30 November 2022 19:01:42 UTC