mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add an FFI which returns computed values for a given declaration block with/without parent_style. r?heycam
The function uses document's default computed values if the parent style is not specified.
This commit is contained in:
parent
39d3c22edc
commit
bd066af640
3 changed files with 52 additions and 1 deletions
|
@ -369,7 +369,7 @@ impl PropertyDeclarationBlock {
|
|||
return false
|
||||
}
|
||||
}
|
||||
self.declarations.iter().any(|&&(ref decl, _)|
|
||||
self.declarations.iter().any(|&(ref decl, _)|
|
||||
decl.id().is_or_is_longhand_of(property) &&
|
||||
decl.get_css_wide_keyword().is_some()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue