1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-selectors/sibling-combinators-on-anon-content-2.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<!DOCTYPE html> 1.5 +<html xmlns="http://www.w3.org/1999/xhtml" reftest-wait=""> 1.6 + <head> 1.7 + <bindings xmlns="http://www.mozilla.org/xbl" 1.8 + xmlns:html="http://www.w3.org/1999/xhtml"> 1.9 + <binding id="x"> 1.10 + <content> 1.11 + <html:span class="a">Some text</html:span> 1.12 + <html:span class="b">This should be green</html:span> 1.13 + <children/> 1.14 + </content> 1.15 + <implementation> 1.16 + <method name="nixText"> 1.17 + <body> 1.18 + document.getAnonymousNodes(this)[0].textContent = ""; 1.19 + </body> 1.20 + </method> 1.21 + </implementation> 1.22 + </binding> 1.23 + </bindings> 1.24 + <style> 1.25 + #foo { -moz-binding: url("#x"); } 1.26 + .a:empty + .b { color: green; } 1.27 + </style> 1.28 + </head> 1.29 + <body> 1.30 + <span id="foo"></span> 1.31 + <script> 1.32 + window.onload = function() { 1.33 + var el = document.getElementById("foo"); 1.34 + // Flush its layout 1.35 + el.offsetWidth; 1.36 + el.nixText(); 1.37 + document.documentElement.className = ""; 1.38 + } 1.39 + </script> 1.40 + </body> 1.41 +</html>