[csswg-drafts] [css-contain-3] Clarify Container Relative Lengths (#7429)

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

== [css-contain-3] Clarify Container Relative Lengths ==
The [spec](https://drafts.csswg.org/css-contain-3/) says:

> unit | relative to
> -- | --
> cqi | 1% of a query container’s inline size
> cqb | 1% of a query container’s block size
>
> ...
>
> For each element, [container query length](https://drafts.csswg.org/css-contain-3/#container-query-length) units are evaluated as [container size queries](https://drafts.csswg.org/css-contain-3/#container-size-query) on the relevant axis (or axes) described by the unit.

However, according to #6873, the query container axis that will be queried should depend on the `writing-mode` of the element. In other words, `cqi` could be relative to the query container's inline size _or_ its block size, depending on which axis the element specifies to be the inline axis.

As written, the spec seems to imply that e.g. `cqi` should query the query container's inline size regardless of the element using the unit, which is inconsistent with how other units like `svi` and `svb` work.

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


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

Received on Wednesday, 29 June 2022 14:20:02 UTC