[csswg-drafts] [scroll-animations] Element based offsets should support rootMargin (#5599)

flackr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [scroll-animations] Element based offsets should support rootMargin ==
In issue #4337 we proposed and added element based offsets but one thing that the pull request #5124 missed is adding the rootMargin for these element based offsets.

Specifically [section 3.1.3.2](https://drafts.csswg.org/scroll-animations/#element-based-offset-section) should have a rootMargin parameter which allows the developer to provide an offset from the scrolling box edge at which the intersection begins to take place similar to [the same property in IntersectionObserver](https://w3c.github.io/IntersectionObserver/#dom-intersectionobserver-rootmargin). It was mentioned in the issue and [implemented in the polyfill](https://github.com/flackr/scroll-timeline) but lost in the pull request. @majido I assume it was not intentionally dropped? I can't find any comments to suggest it was, and being able to offset from the edge can be quite useful.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5599 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 8 October 2020 20:36:45 UTC