gecko-dev/layout/reftests/bugs/1371130.xhtml

25 строки
688 B
HTML

<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>