w3c / w3c/csswg-drafts

[css-overflow-4] Add `auto` value for box edge in `overflow-clip-margin-*`

Open
#8,744 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The spec. defines that <visual-box> in `overflow-clip-margin-* resolves differently regarding replaced vs. non-replaced elements when omitted.

To make this circumstance explicit, we should introduce an auto value for it, especially if we want to allow multiple values in the shorthands. With an explicit auto value, one could write content-box 2em / auto 4em to distinguish it from content-box 2em / 4em if we decide that the latter means to set content-box for all four sides. See also https://github.com/w3c/csswg-drafts/issues/8381#issuecomment-1516957616.

Sebastian

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

Review the CSS Overflow 4 specification text for overflow-clip-margin-* and the discussion in issue 8381, especially the referenced comment. Clarify the intended auto value and shorthand interpretation with the CSS Working Group; done means the specification reflects an agreed resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.