style: Reftest for bogus style sharing across cousins.

This commit is contained in:
Emilio Cobos Álvarez 2017-05-01 11:42:06 +02:00
parent e09ae428eb
commit f879140ad2
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 47 additions and 1 deletions

View file

@ -113,7 +113,7 @@ fn test_revalidation_selectors() {
"p:first-child span",
]).into_iter()
.filter(|s| needs_revalidation(&s))
.map(|s| s.inner.slice_to_first_ancestor_combinator().complex)
.map(|s| s.inner.complex)
.collect::<Vec<_>>();
let reference = parse_selectors(&[

View file

@ -1211,6 +1211,18 @@
{}
]
],
"css/bug-1361013-cousin-sharing.html": [
[
"/_mozilla/css/bug-1361013-cousin-sharing.html",
[
[
"/_mozilla/css/bug-1361013-cousin-sharing-ref.html",
"=="
]
],
{}
]
],
"css/button_css_width.html": [
[
"/_mozilla/css/button_css_width.html",
@ -7262,6 +7274,11 @@
{}
]
],
"css/bug-1361013-cousin-sharing-ref.html": [
[
{}
]
],
"css/button_css_width_ref.html": [
[
{}
@ -20835,6 +20852,14 @@
"2ebf9c8f963a2f3971a3c1b64b6b01825eacdedc",
"support"
],
"css/bug-1361013-cousin-sharing-ref.html": [
"3451cb4533d650f6f624b89548ce7117bcc8bef3",
"support"
],
"css/bug-1361013-cousin-sharing.html": [
"95c8c8d33cca3d6e969338a98c60ec9804256ef5",
"reftest"
],
"css/bug_1345483.html": [
"41b55af9d5c95910b1af74c0fbffb24e20bbe869",
"testharness"

View file

@ -0,0 +1,8 @@
<!doctype html>
<style>
div { color: green; }
</style>
<div>
<p><span></span></p>
<p><span>This should be green.</span></p>
</div>

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset="utf-8">
<title>Bug 1361013: selectors for revalidation account for cousins sharing style</title>
<link rel="author" name="Cameron McCormack" href="mailto:cam@mcc.id.au">
<link rel="match" href="bug-1361013-cousin-sharing-ref.html">
<style>
div { color: green; }
p:first-child > span { color: red; }
</style>
<div>
<p><span></span></p>
<p><span>This should be green.</span></p>
</div>