style: Support scroll-timeline-name longhand in style system

Implement "scroll-timeline-name: none | <custom-ident>".

Differential Revision: https://phabricator.services.mozilla.com/D146018
This commit is contained in:
Boris Chiou 2022-06-13 20:26:44 +00:00 committed by Martin Robinson
parent 105050d46d
commit 8d8594ef86
6 changed files with 65 additions and 6 deletions

View file

@ -586,6 +586,12 @@ pub trait IsAuto {
pub struct TimelineName(TimelineOrKeyframesName);
impl TimelineName {
/// Create a new TimelineName from Atom.
#[cfg(feature = "gecko")]
pub fn from_atom(atom: Atom) -> Self {
Self(TimelineOrKeyframesName::from_atom(atom))
}
/// Returns the `none` value.
pub fn none() -> Self {
Self(TimelineOrKeyframesName::none())