Bug 1371130: Test. r=emilio
MozReview-Commit-ID: 7SSk73YoUsX
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