mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix computed value of 'display' when no declaration applies.
This commit is contained in:
parent
e405f81065
commit
4d80cfb404
1 changed files with 5 additions and 0 deletions
|
@ -1888,6 +1888,11 @@ pub fn cascade(applicable_declarations: &[MatchedProperty],
|
|||
% endfor
|
||||
}
|
||||
|
||||
if !seen.get_display() {
|
||||
let box_ = style_Box.get_mut();
|
||||
box_.display = longhands::display::to_computed_value(box_.display, &context);
|
||||
}
|
||||
|
||||
(ComputedValues {
|
||||
% for style_struct in STYLE_STRUCTS:
|
||||
${style_struct.name}: style_${style_struct.name},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue