Page MenuHomePhabricator

Allow use of scroll snap module 1 CSS in TemplateStyles
Closed, ResolvedPublicFeature

Description

Example demo at https://codepen.io/Krinkle/pen/RwGJLzJ

On mediawiki.org, the property scroll-margin-top is currently stripped out. Presumably due to being unknown.
The property is part of CSS Scroll Snap Module Level 1, a W3C Candidate Recommendation.

Browser support:
Scroll snap support ranges from 95% (in 2021) for the popular properties (of earlier drafts) and 0-20% support for the newer less popular properties.
https://caniuse.com/?search=scroll%20snap

Details

Event Timeline

TheDJ renamed this task from Allow use of scroll-margin-top in TemplateStyles to Allow use of scroll snap module 1 CSS in TemplateStyles.Dec 31 2021, 12:27 PM
TheDJ updated the task description. (Show Details)
Izno changed the subtype of this task from "Task" to "Feature Request".Jan 14 2023, 1:54 AM

Change #1195412 had a related patch set uploaded (by SD0001; author: SD0001):

[css-sanitizer@master] Add support for CSS Scroll Snap Module Level 1

https://gerrit.wikimedia.org/r/1195412

Change #1195412 merged by jenkins-bot:

[css-sanitizer@master] Add support for CSS Scroll Snap Module Level 1

https://gerrit.wikimedia.org/r/1195412

SD0001 claimed this task.