[csswg-drafts] [css-contain] `container-type` shouldn't allow mixing `normal` with other values (#7669)

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

== [css-contain] `container-type` shouldn't allow mixing `normal` with other values ==
https://drafts.csswg.org/css-contain-3/#container-type

> [Value:](https://www.w3.org/TR/css-values/#value-defs) `normal` [||](https://drafts.csswg.org/css-values-4/#comb-any) [ `size` [|](https://drafts.csswg.org/css-values-4/#comb-one) `inline-size` ]

But `normal size` and `normal inline-size` don't make sense.

`normal` establishes a query container for [container style queries](https://drafts.csswg.org/css-contain-3/#container-style-query), but that's the default, included in `size` and `inline-size`:

> Unless otherwise noted, all elements are [query containers](https://drafts.csswg.org/css-contain-3/#query-container) for the purpose [container queries](https://drafts.csswg.org/css-contain-3/#container-query) that do no require explicit containment (such as [container style queries](https://drafts.csswg.org/css-contain-3/#container-style-query))

The definitions are even contradictory, e.g. with `normal size`, both of these apply:

> The element is not a [query container](https://drafts.csswg.org/css-contain-3/#query-container) for any [container size queries](https://drafts.csswg.org/css-contain-3/#container-size-query)

> Establishes a [query container](https://drafts.csswg.org/css-contain-3/#query-container) for [container size queries](https://drafts.csswg.org/css-contain-3/#container-size-query)

So the syntax should just be `normal | size | inline-size`.


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


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

Received on Wednesday, 31 August 2022 17:55:34 UTC