[csswg-drafts] [css-contain] container shorthand syntax is confusing. (#7180)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain] container shorthand syntax is confusing. ==
https://andreubotella.com/csswg-auto-build/css-contain-3/#container-shorthand says:

> [<'container-name'>](https://andreubotella.com/csswg-auto-build/css-contain-3/#propdef-container-name)[?](https://andreubotella.com/csswg-auto-build/css-values-4/#mult-opt) [ / [<'container-type'>](https://andreubotella.com/csswg-auto-build/css-contain-3/#propdef-container-type) ]?

But tests expect `<container-type> [ / <container-name> ]?` which makes a lot more sense to me. Having both parts of the syntax optional doesn't really make sense to me.

cc @mirisuzanne @andruud 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7180 using your GitHub account


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

Received on Wednesday, 30 March 2022 00:16:24 UTC