Bug 1371130 - Part 2: Test. r?emilio draft
authorCameron McCormack <cam@mcc.id.au>
Fri, 09 Jun 2017 12:18:09 +0800
changeset 591545 3a38e8ea6f81aaff2b370a696abfea38cf4bef74
parent 591544 f9746971ede97fe6d25062ebeb3eaa0fb709a961
child 632537 8392c12a40fc4ca981f2faec690d4b5814859099
push id63080
push userbmo:cam@mcc.id.au
push dateFri, 09 Jun 2017 06:27:37 +0000
reviewersemilio
bugs1371130
milestone55.0a1
Bug 1371130 - Part 2: Test. r?emilio MozReview-Commit-ID: jTej3yD333
layout/reftests/bugs/1371130-1-ref.xhtml
layout/reftests/bugs/1371130-1.xhtml
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1371130-1-ref.xhtml
@@ -0,0 +1,24 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <bindings xmlns="http://www.mozilla.org/xbl"
+              xmlns:xhtml="http://www.w3.org/1999/xhtml">
+      <binding id="a">
+        <content>
+          <xhtml:p>
+            <children></children>
+          </xhtml:p>
+          <xhtml:span>This should also be green.</xhtml:span>
+        </content>
+      </binding>
+    </bindings>
+    <style>
+      span { color: red; }
+      div > span { color: green; }
+    </style>
+  </head>
+  <body>
+    <div style="-moz-binding: url(#a)">
+      <span>This should be green.</span>
+    </div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1371130-1.xhtml
@@ -0,0 +1,24 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <bindings xmlns="http://www.mozilla.org/xbl"
+              xmlns:xhtml="http://www.w3.org/1999/xhtml">
+      <binding id="a">
+        <content>
+          <xhtml:p>
+            <children></children>
+          </xhtml:p>
+          <xhtml:span>This should also be green.</xhtml:span>
+        </content>
+      </binding>
+    </bindings>
+    <style>
+      span { color: red; }
+      div.x > span { color: green; }
+    </style>
+  </head>
+  <body onload="dump('here\n'); document.querySelector('div').className = 'x'">
+    <div style="-moz-binding: url(#a)">
+      <span>This should be green.</span>
+    </div>
+  </body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2006,8 +2006,9 @@ fails-if(styloVsGecko) == 1322512-1.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
 == 1369954-1.xhtml 1369954-1-ref.xhtml
+== 1371130-1.xhtml 1371130-1-ref.xhtml