style: Really only resolve applicable ::before / ::after.

MozReview-Commit-ID: 4dIykkUdIxZ
This commit is contained in:
Emilio Cobos Álvarez 2017-08-27 18:55:40 +02:00
parent 97338d0e84
commit 14d60a7e89
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 7 additions and 1 deletions

View file

@ -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);
}
})

View file

@ -27152,7 +27152,7 @@
"testharness"
],
"mozilla/getComputedStyle.html": [
"17a1592664bdc9518786673683b9c43412fe9424",
"0cb74e3ff46837ccc308fac608f6924f101a0da6",
"testharness"
],
"mozilla/getPropertyPriority.html": [

View file

@ -6,6 +6,7 @@
<style>
#foo:before {
color: red;
content: "";
}
#foo {