Bug 1371130: Test. r=emilio draft
authorCameron McCormack <cam@mcc.id.au>
Mon, 19 Jun 2017 15:22:22 +0200
changeset 597207 afacf5598219b4c217b89336eb60f9d83d8e3998
parent 597206 d18d90cfc9907869795e1ca4aa5234f578c26447
child 597208 4a6326c89cc613f64ab73ad27cdd7001b42ee597
push id64876
push userbmo:emilio+bugs@crisal.io
push dateTue, 20 Jun 2017 09:26:19 +0000
reviewersemilio
bugs1371130
milestone56.0a1
Bug 1371130: Test. r=emilio MozReview-Commit-ID: 7SSk73YoUsX
layout/reftests/bugs/1371130-ref.xhtml
layout/reftests/bugs/1371130.xhtml
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1371130-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.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="document.body.offsetTop; 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
@@ -2007,8 +2007,9 @@ fails-if(styloVsGecko) == 1322512-1.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
 == 1368113-1.html 1368113-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.xhtml 1371130-ref.xhtml