From b6ecb1ccb1261e52cf0a72cc3f8fd3224bebd6ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 17 Jun 2016 04:07:26 +0200 Subject: [PATCH] style: Add animation-timing-function parsing as experimental. --- components/script/dom/webidls/CSSStyleDeclaration.webidl | 2 ++ components/style/properties/longhand/box.mako.rs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/components/script/dom/webidls/CSSStyleDeclaration.webidl b/components/script/dom/webidls/CSSStyleDeclaration.webidl index f13bcfa4048..62baec54423 100644 --- a/components/script/dom/webidls/CSSStyleDeclaration.webidl +++ b/components/script/dom/webidls/CSSStyleDeclaration.webidl @@ -332,4 +332,6 @@ partial interface CSSStyleDeclaration { [SetterThrows, TreatNullAs=EmptyString] attribute DOMString animationName; [SetterThrows, TreatNullAs=EmptyString] attribute DOMString animation-duration; [SetterThrows, TreatNullAs=EmptyString] attribute DOMString animationDuration; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString animation-timing-function; + [SetterThrows, TreatNullAs=EmptyString] attribute DOMString animationTimingFunction; }; diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 898a1902548..3a61b987eeb 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -880,6 +880,12 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto", need_clone= pub use super::transition_duration::SpecifiedValue; +<%helpers:longhand name="animation-timing-function" experimental="True"> + pub use super::transition_timing_function::computed_value; + pub use super::transition_timing_function::{parse, get_initial_value}; + pub use super::transition_timing_function::SpecifiedValue; + + // CSSOM View Module // https://www.w3.org/TR/cssom-view-1/ ${helpers.single_keyword("scroll-behavior",