Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-contain-3] Clarify Container Relative Lengths #7429

Open
devknoll opened this issue Jun 29, 2022 · 0 comments
Open

[css-contain-3] Clarify Container Relative Lengths #7429

devknoll opened this issue Jun 29, 2022 · 0 comments

Comments

@devknoll
Copy link

The spec 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 units are evaluated as container size queries 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants