w3c / w3c/csswg-drafts

[css-sizing-4][css-logical] How to use aspect-ratio in a logical manner?

Open
#3,958 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-sizing-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://drafts.csswg.org/css-sizing-4/#aspect-ratio
https://github.com/w3c/csswg-drafts/issues/3757#issuecomment-495047265

I see mention of inline-size, block-size, and writing modes in relation to Example 3 specifically. But should I assume aspect-ratio will simply be physically mapping x/y, like the physical width/height language in the linked ratio definition of mediaqueries-4?

And then this is just another place for the Flow-Relative Keyword to enable logical mapping?

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 Sizing Level 4 aspect-ratio section and Example 3, then compare the ratio definition in Media Queries Level 4 and the discussion in issues 3757 and 1282. Done means resolving and documenting whether aspect-ratio is physical or logical, including how writing modes and flow-relative keywords apply.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.