[scroll-snap] Fix viewport style propagation
Previously we propagated scroll snap properties [1] from viewport defining element's style to the viewport. However this is not spec compliant [1] and more importantly our behavior is different from Gecko. This patch fixes this issue by having these properties propagate from document.documentElement instead. TODO: better understand the backward compat impact. Note that this can cause previously snapping viewport to no longer snap if the web developer has declared the snap type on body as opposed to document and body is viewport defining element [1] scroll-snap-type, scroll-padding [2] https://github.com/w3c/csswg-drafts/issues/3740 BUG= 952711 TEST= wpt/css/css-scroll-snap/scroll-snap-type-on-root-element.html Change-Id: I2d84095decb3af52f6a99c52a5a1a8d5c92fcf62 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1704859 Commit-Queue: Majid Valipour <majidvp@chromium.org> Reviewed-by:David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#682363}
Showing
Please register or sign in to comment