Don't inherit all properties for pre-computed pseudos if there are no matching rules.

This commit is contained in:
Cameron McCormack 2017-01-09 14:55:58 +08:00
parent 6a9e2fd7fb
commit 3e0e2bcd2c
3 changed files with 27 additions and 27 deletions

View file

@ -394,7 +394,7 @@ pub trait ThreadSafeLayoutElement: Clone + Copy + Sized + Debug +
&context.default_computed_values,
false);
data.styles_mut().pseudos
.insert(style_pseudo.clone(), new_style.unwrap());
.insert(style_pseudo.clone(), new_style);
}
}
PseudoElementCascadeType::Lazy => {