RetroZilla/parser/htmlparser/tests/html/54651.html
2015-10-20 23:03:22 -04:00

37 lines
782 B
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Child Selectors Test</title>
<style type="text/css">
DIV P { background: red; color: yellow }
LI P { background: green; color: white; }
DIV P:after { content: ' [[ FAILED ]]'; }
LI P:after { content: ' [[ PASSED ]]'; }
* { padding: 4px; border: 1px solid lime; margin: 4px; }
</style></head>
<body>
<p>Below this box, every box should be within another. In other
words, the only SIBLINGS in this document should be this box and the
immediate next one. In particular, LI should allow the inner DIV to
nest within it.</p>
<div>
DIV
<ol>
<li>
LI
<div>
DIV
<p>
P
</p>
</div>
</li>
</ol>
</div>
</body></html>