github web-platform-tests/wpt merge_pr_48350

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
6 months ago

[css-scroll-snap-2] Make scroll-start-target single-param

Per the spec[1], this patch makes the scroll-start-target property take
a single argument, and makes it no longer a shorthand.

The syntax used to be:
scroll-start-target:
where and could be "auto" or "none",
but it should now be:
scroll-start-target: [auto|none]

Follow-up work:

Now that the property no longer differentiates the axes, each
scroll-start-target is to be scrolled to in both axes. The
CSSWG has resolved[2] to handle competing scroll-start-targets by
scrolling to each one in reverse-DOM-order. This patch only handles the
change in parsing, a follow-up patch will handle the resolution of
competing targets.

[1] https://drafts.csswg.org/css-scroll-snap-2/#scroll-start-target
[2] w3c/csswg-drafts#10774 (comment)

Bug: 40909052, 368038561
Change-Id: I2a773dd8d4291602c6b69f47e0e648fd8a28e1fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5881188
Commit-Queue: David Awogbemila awogbemila@chromium.org
Reviewed-by: Anders Hartvoll Ruud andruud@chromium.org
Cr-Commit-Position: refs/heads/main@{#1360557}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.