[wpt-sync] Sync PR 17936 - [scroll-snap] Fix viewport style propagation
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 17936 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/17936
Details from upstream follow.
Majid Valipour <majidvp@chromium.org> wrote:
[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/3740BUG= 952711
TEST= wpt/css/css-scroll-snap/scroll-snap-type-on-root-element.htmlChange-Id: I2d84095decb3af52f6a99c52a5a1a8d5c92fcf62
Reviewed-on: https://chromium-review.googlesource.com/1704859
WPT-Export-Revision: 7ae0d41319fe18a2e2e37e2cf910c2250dd392ca
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Description
•