[scroll-timeline] Add element-based offset IDL
Implement basic element-based IDL and processing. - Change existing start and end offset to accept a dictionary at the moment it only has target and threshold but no edge or rootMargin. - Add ScrollTimelineOffset that can handle both the existing string or the new dictionary based offset. - Update ScrollTimeline to use new the offset class. - Implement basic validation logic for new element-based offset. - Add test verify correct parsing and validation on construction. This is the first patch in a series. Follow up patch [1] would use this new offset input to produce the resolved offset. [1] https://chromium-review.googlesource.com/c/chromium/src/+/2100887 Test: wpt/scroll-animations/constructor.html Bug: 1023375 Change-Id: Ie14fb2127d089a39379c498b4b15c86e6b2dd272 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2070673 Commit-Queue: Yi Gu <yigu@chromium.org> Reviewed-by:Majid Valipour <majidvp@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Yi Gu <yigu@chromium.org> Auto-Submit: Majid Valipour <majidvp@chromium.org> Cr-Commit-Position: refs/heads/master@{#756082}
Showing
This diff is collapsed.
Please register or sign in to comment