diff options
Diffstat (limited to 'layout/reftests/dom/xbl-children-4.xhtml')
-rw-r--r-- | layout/reftests/dom/xbl-children-4.xhtml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/layout/reftests/dom/xbl-children-4.xhtml b/layout/reftests/dom/xbl-children-4.xhtml new file mode 100644 index 000000000..b8d8f8b59 --- /dev/null +++ b/layout/reftests/dom/xbl-children-4.xhtml @@ -0,0 +1,29 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:xbl="http://www.mozilla.org/xbl" + class="reftest-wait"> +<head> + <meta charset="UTF-8" /> + <style> + children { display:block; } + </style> +</head> +<body> + <xbl:children /> + <script> + onload = function() { + /* First, schedule a pending restyle of the whole tree. */ + var newSheet = document.createElementNS("http://www.w3.org/1999/xhtml", "style"); + newSheet.appendChild(document.createTextNode("#nosuchelement { }")); + document.head.appendChild(newSheet); + + /* Now, append a frame to our children element, causing the pending restyle to descend into it. */ + var children = document.getElementsByTagName("xbl:children")[0]; + var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); + span.appendChild(document.createTextNode("PASS")); + children.appendChild(span); + document.documentElement.removeAttribute("class"); + } + </script> +</body> +</html> |