mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Really only resolve applicable ::before / ::after.
MozReview-Commit-ID: 4dIykkUdIxZ
This commit is contained in:
parent
97338d0e84
commit
14d60a7e89
3 changed files with 7 additions and 1 deletions
|
@ -194,7 +194,12 @@ where
|
|||
&primary_style,
|
||||
layout_parent_style_for_pseudo
|
||||
);
|
||||
|
||||
if let Some(style) = pseudo_style {
|
||||
if !matches!(self.pseudo_resolution, PseudoElementResolution::Force) &&
|
||||
eager_pseudo_is_definitely_not_generated(&pseudo, &style) {
|
||||
return;
|
||||
}
|
||||
pseudo_styles.set(&pseudo, style);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue