[css-contain-3] Clarify Container Relative Lengths
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS Containment Level 3 specification linked in the issue, then compare the container query length wording with the behavior discussed in issue #6873 and with the svi/svb definitions. Clarify whether cqi and cqb use the querying element’s writing mode, and update the specification text so the intended axis behavior is unambiguous.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100