Bug 1365162 - Part 7: Test for :lang() with a sibling combinator. r=emilio
authorCameron McCormack <cam@mcc.id.au>
Wed, 07 Jun 2017 11:08:12 +0800
changeset 411016 d27eb08d5cffe0d1e4b2803588566d5a551a09cb
parent 411015 bc0e5e592ff4a4c0bd367715d3b3cb0a1ba592a8
child 411017 dd6ac8761b9d015e2dbf2cf5d0813ff4542f4ed7
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1365162
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1365162 - Part 7: Test for :lang() with a sibling combinator. r=emilio MozReview-Commit-ID: J9PYC3RkEMm
layout/reftests/bugs/1365162-1-ref.html
layout/reftests/bugs/1365162-1.html
layout/reftests/bugs/reftest.list
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