scroll-margin should not accept percentages
So far, scroll-margin-*, scroll-margin-block-*, scroll-margin-inline-* are defined as simple length property in |IsSimpleLengthPropertyID|. But scroll-margin should not accept percentages, therefore these properties are removed from simple length property. https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-block The properties are only supported by Blink and Firefox, and Firefox already correctly rejects percentages: https://wpt.fyi/results/css/css-scroll-snap/parsing Bug: 930517 Change-Id: Iaf7286552a8b352c2901a42b8fadc83ce79c9077 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640259 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Majid Valipour <majidvp@chromium.org> Reviewed-by:
Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#666570}
Showing
Please register or sign in to comment