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

I am not happy with calling "non-nested" the `nested-element` selector in 
```css
element { property: value; } { 
    nested-element { ... }
}
```
It *is* nested in a pair of brace, just like it always has been in all proposals. It is just not the same pair of brace as the declarations. But, then again, CSS so far has always had blocks that contained only declarations or rules.

I am not sure how "weird" this really is. This is exactly analogous to HTML.

```html
<element property="value">
    <nested-element ... />
</element>
```

both the properties and the child elements are nested in `element`, but in two different context that are both associated to the same thing. When you don't need the nested elements, you can use `<element />` which is what CSS has had so far.

I really don't see the weirdness in any of this, this is perfectly analogous with CSS.

--------------------------

PS: I am 100% fine with the group going with another solution than 4; honestly there are pros and cons to all. But I am not fine with having discussions where there are people stating that "because I am the editor, I don't want to hear about other people's opinion if they don't agree with me". This is unprofessional. 😕

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


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

Received on Tuesday, 18 October 2022 18:22:51 UTC