Files
sousa-gecko/dom/webidl/AnimationTimeline.webidl
T
Jonathan Watt da3c112f72 Bug 2017442. Use CSSNumberish for AnimationTimeline.currentTime. r=boris,webidl,emilio
- AnimationTimeline::CurrentTime becomes a virtual with a base implementation
  that sets the CSSNumberish to a plain double (ms).
- DocumentTimeline inherits the base double impl.
- ScrollTimeline overrides GetCurrentTime to return a percent CSSUnitValue on
  Nightly when layout.css.typed-om.enabled is set, falling back to the base
  double otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D300577
2026-05-29 13:06:55 +00:00

20 lines
726 B
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://drafts.csswg.org/web-animations/#animationtimeline
* https://drafts.csswg.org/web-animations-2/#the-animationtimeline-interface
*
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
* liability, trademark and document use rules apply.
*/
[Exposed=Window]
interface AnimationTimeline {
readonly attribute CSSNumberish? currentTime;
[GetterThrows, Pref="layout.css.scroll-driven-animations.enabled"]
readonly attribute CSSNumberish? duration;
};