mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #18261 - emilio:silly-pseudo-style, r=heycam
style: Really only resolve applicable ::before / ::after. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18261) <!-- Reviewable:end -->
This commit is contained in:
commit
94c870726f
3 changed files with 7 additions and 1 deletions
|
@ -194,7 +194,12 @@ where
|
||||||
&primary_style,
|
&primary_style,
|
||||||
layout_parent_style_for_pseudo
|
layout_parent_style_for_pseudo
|
||||||
);
|
);
|
||||||
|
|
||||||
if let Some(style) = pseudo_style {
|
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);
|
pseudo_styles.set(&pseudo, style);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -27152,7 +27152,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/getComputedStyle.html": [
|
"mozilla/getComputedStyle.html": [
|
||||||
"17a1592664bdc9518786673683b9c43412fe9424",
|
"0cb74e3ff46837ccc308fac608f6924f101a0da6",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"mozilla/getPropertyPriority.html": [
|
"mozilla/getPropertyPriority.html": [
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
<style>
|
<style>
|
||||||
#foo:before {
|
#foo:before {
|
||||||
color: red;
|
color: red;
|
||||||
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#foo {
|
#foo {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue