w3c / w3c/csswg-drafts

scroll-policy: ease horizontal scrolling by wheel in vertical writing mode

Open
#4,380 14 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I propose to introduce a new property scroll-policy, in order to ease horizontal scrolling in vertical writing mode:

The property has two values: none (default value), auto.

none keeps the traditional scroll policy unchanged, in order to avoid breaking upward compatibility.

auto tells the browsers to take full advantage of scrolling operations, as much as they like, without fearing any compatibility:

For example, if an element is in vertical-rl mode, and overflows in only the horizontal direction, then the browser can quite confidently set the default action of the upward wheel event as rightward scrolling, and the default action of the downward wheel event as leftward scrolling.

This feature is significantly helpful if the whole page is more than one screen in vertical writing mode, and will make the vertical writing pages eventually become practical in real-world.

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 issue #4380 and its 14-comment discussion; review the proposed scroll-policy values, vertical writing mode, and wheel-event behavior. No files, tests, or implementation entry points are named in the payload; done requires an agreed specification for the property and its scrolling semantics.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.