W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

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

From: Robert Flack via GitHub <sysbot+gh@w3.org>
Date: Thu, 08 Oct 2020 20:36:44 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-717646416-1602189403-sysbot+gh@w3.org>
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](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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:20 UTC