mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
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:
parent
105050d46d
commit
8d8594ef86
6 changed files with 65 additions and 6 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue