mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Store custom properties in keyframes into servo's PropertyDeclarationBlock
This commit is contained in:
parent
54f8a131ea
commit
ded0c713db
7 changed files with 33 additions and 0 deletions
|
@ -1514,6 +1514,12 @@ impl PropertyDeclaration {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns true if this property is a custom property, false
|
||||
/// otherwise.
|
||||
pub fn is_custom(&self) -> bool {
|
||||
matches!(*self, PropertyDeclaration::Custom(_, _))
|
||||
}
|
||||
|
||||
/// The `context` parameter controls this:
|
||||
///
|
||||
/// https://drafts.csswg.org/css-animations/#keyframes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue