w3c / w3c/csswg-drafts

[css-overflow-3] Overflow Viewport Propagation does not seem accurate

Open
#9,249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Spec section: https://drafts.csswg.org/css-overflow-3/#overflow-propagation

This spec text confuses me:

UAs must apply the overflow-* values set on the root element to the viewport

As far as I understand, the viewport is not the root scroll container; the viewport is merely the scrollport of the root scroll container. So I don’t understand why something like html { overflow: scroll } should propagate to the viewport. Should it not propagate to the root scroll container instead? The overflow property applies to block containers, and the viewport is not a block container. The root scroll container is a block container, I assume.

Could you clarify this?

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 Overflow Level 3 overflow-propagation section linked in the issue, then compare its wording about the root element, viewport, scrollport, and root scroll container. Clarify the terminology and propagation target in the specification, with the section text itself providing the completion check.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.