w3c / w3c/csswg-drafts

[css-contain-3] Clarify Container Relative Lengths

Open
#7,429 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-conditional-5 Needs Edits
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.