[csswg-drafts] [css-contain-3] container-type syntax implies you might need multiple values (#7977)

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

== [css-contain-3] container-type syntax implies you might need multiple values ==
Currently, the [formal syntax for `container-type`](https://www.w3.org/TR/css-contain-3/#container-type) is:

```
normal || [ size | inline-size ]
```

This implies you might want to use `normal` _along side_ either `size` or `inline-size`. The only reason to do that would be if `inline-size` acted as an override to the `normal` behavior - in which case authors would need to re-assert `normal inline-size` as a way to query both styles and sizes of the container. But as far as I can tell, that's not the behavior described in the spec, or the desired behavior, or the way things work with the Chrome prototype of style queries. Instead, a container type of `inline-size normal` [behaves the same](https://codepen.io/miriamsuzanne/pen/poKJxLO) as a container type of `inline-size`.

I think we should probably change the syntax to: 

```
normal | size | inline-size
```

But, alternately, we could just add a note to clarify how this works. 

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


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

Received on Friday, 28 October 2022 20:43:35 UTC