mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Part 2: Hook @scroll-timeline rule into style system
We add scroll-timeline rule into the stylesheet rule type, and add a new perference to protect it: layout.css.scroll-linked-animations.enabled. We will use this perference for animation-timeline property as well. Differential Revision: https://phabricator.services.mozilla.com/D125765
This commit is contained in:
parent
111c8d616f
commit
bb703e303d
6 changed files with 57 additions and 11 deletions
|
@ -2285,6 +2285,10 @@ impl CascadeData {
|
|||
}
|
||||
},
|
||||
#[cfg(feature = "gecko")]
|
||||
CssRule::ScrollTimeline(..) => {
|
||||
// TODO: Bug 1676784: set the timeline into animation.
|
||||
}
|
||||
#[cfg(feature = "gecko")]
|
||||
CssRule::FontFace(ref rule) => {
|
||||
self.extra_data.add_font_face(rule);
|
||||
},
|
||||
|
@ -2553,6 +2557,7 @@ impl CascadeData {
|
|||
CssRule::CounterStyle(..) |
|
||||
CssRule::Supports(..) |
|
||||
CssRule::Keyframes(..) |
|
||||
CssRule::ScrollTimeline(..) |
|
||||
CssRule::Page(..) |
|
||||
CssRule::Viewport(..) |
|
||||
CssRule::Document(..) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue