w3c / w3c/csswg-drafts

[css-device-adapt] Clarification about device-height and device-width

Open
#4,085 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-device-adapt-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

The specification doesn't make it clear if width and height can be mixed up.
https://drafts.csswg.org/css-device-adapt/#width-and-height-properties

<meta name="viewport" content="width=device-height">
<meta name="viewport" content="height=device-width">

if they are invalid, they should be treated as step 4.

Other keywords and unknown values translate to 1px

but if they are valid, what do they mean?

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 linked CSS Device Adaptation section on width and height properties and review the two swapped viewport examples in the issue. Determine how the specification should clarify these cases, then update the relevant specification text once their validity and meaning are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.