Bug 1365162 - Part 7: Test for :lang() with a sibling combinator. r=emilio
MozReview-Commit-ID: J9PYC3RkEMm
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1365162-1-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<style>
+p { color: green; }
+</style>
+<div lang="zh">
+ <div>
+ <p>This text should be green.</p>
+ </div>
+</div>
+<p>This text should be green.</p>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1365162-1.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<style>
+p { color: red; }
+p:lang(zh) { color: green; }
+div:lang(zh) + p { color: green; }
+</style>
+<body onload="document.querySelector('div').lang = 'zh'">
+<div lang="en">
+ <div>
+ <p>This text should be green.</p>
+ </div>
+</div>
+<p>This text should be green.</p>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1999,13 +1999,14 @@ fails-if(styloVsGecko) == 1322512-1.html
== 1358375-2.html 1358375-ref.html
== 1358375-3.html 1358375-ref.html
== 1364280-1.html 1364280-1-ref.html
== 1364280-2a.html 1364280-2-ref.html
== 1364280-2b.html 1364280-2-ref.html
== 1364280-2c.html 1364280-2-ref.html
== 1364335.html 1364335-ref.html
== 1364360-1.html 1364360-1-ref.html
+== 1365159-1.html 1365159-1-ref.html
+fails-if(!stylo||!styloVsGecko) == 1365162-1.html 1365162-1-ref.html
== 1366144.html 1366144-ref.html
+== 1367592-1.html 1367592-1-ref.html
== 1369584-1a.html 1369584-1-ref.html
== 1369584-1b.html 1369584-1-ref.html
-== 1367592-1.html 1367592-1-ref.html
-== 1365159-1.html 1365159-1-ref.html