blob: 0012aade1ae889ba4571b355351632b6331ca511 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dynamic handling of combinators</title>
<style type="text/css"><![CDATA[
#test { background: red; display: block; padding: 1em; }
#stub ~ div div + div > div { background: lime; }
]]></style>
<link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
<link rel="prev" href="css3-modsel-d1b.xml" title="Dynamic handling of :empty"/>
<link rel="next" href="css3-modsel-d3.xml" title="Dynamic handling of attribute selectors"/>
<link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
<link rel="up" href="./index.html"/>
<link rel="top" href="../../index.html"/>
</head>
<body>
<div>
<script type="text/javascript">
<![CDATA[
function test() {
el = document.getElementById('test');
el.parentNode.parentNode.insertBefore(document.createElementNS('http://www.w3.org/1999/xhtml', 'div'), el.parentNode);
}
window.setTimeout("test()", 100);
]]>
</script>
<p> The following bar should be green. </p>
<div id="stub"></div>
<div></div>
<div><div><!-- <div/> --><div><div id="test"></div></div></div></div>
</div>
</body>
</html>