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

[csswg-drafts] Pull Request: [scroll-animations-1] Use CSSTypedOM instead of strings (#5213)

From: Majid Valipour via GitHub <sysbot+gh@w3.org>
Date: Wed, 08 Jul 2020 19:14:52 +0000
To: public-css-archive@w3.org
Message-ID: <pull_request.opened-446433874-1594235691-sysbot+gh@w3.org>
majido has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [scroll-animations-1] Use CSSTypedOM instead of strings (#5213) ==
Use appropriate CSSTypedOM instead of DOMStrings in the API. Fixes #5213.

Changes:
 - For offsets use `CSSNumberish or ScrollTimelineAutoKeyword` instead of DOMString
 - When computing effective scroll offset check the offset actual type and interpret it accordingly
 - To improve ergonomics we accept double (via CSSNumberish) and interpret unit less values as being in pixels.
 - Update examples to showcase the API and add noted to clarify the usage.



See https://github.com/w3c/csswg-drafts/pull/5300
Received on Wednesday, 8 July 2020 19:14:53 UTC

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