Bug 1369954 - Part 3: Test. r=emilio
MozReview-Commit-ID: J9TonApa0MS
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1369954-1-ref.xhtml
@@ -0,0 +1,17 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <style>
+ span { color: green; }
+ b { color: purple }
+ </style>
+ </head>
+ <body>
+ <div>
+ <span>This should be green</span>
+ <p>
+ <span>This should also be green</span><br/>
+ <b>This should be purple</b>
+ </p>
+ </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1369954-1.xhtml
@@ -0,0 +1,26 @@
+<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>
+ <span>This should be green</span>
+ <xhtml:p>
+ <children></children>
+ </xhtml:p>
+ </content>
+ </binding>
+ </bindings>
+ <style>
+ div > span { color: green; }
+ p > span { color: red !important; }
+ p { color: purple }
+ </style>
+ </head>
+ <body>
+ <div style="-moz-binding: url(#a)">
+ <span>This should also be green</span><br/>
+ <b>This should be purple</b>
+ </div>
+ </body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2005,8 +2005,9 @@ fails-if(styloVsGecko) == 1322512-1.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
+== 1369954-1.xhtml 1369954-1-ref.xhtml
--- a/layout/xul/tree/crashtests/crashtests.list
+++ b/layout/xul/tree/crashtests/crashtests.list
@@ -10,15 +10,15 @@ load 393665-1.xul
load 399227-1.xul
load 399227-2.xul
asserts-if(stylo,3) load 399692-1.xhtml # bug 1324698
asserts-if(stylo,2) load 399715-1.xhtml # bug 1370830
load 409807-1.xul
load 414170-1.xul
load 430394-1.xul
load 454186-1.xul
-load 479931-1.xhtml
+asserts-if(stylo,3) load 479931-1.xhtml # bug 1324698
load 509602-1.xul
load 585815.html
load 601427.html
load 730441-1.xul
load 730441-2.xul
load 730441-3.xul