Files
servo/tests/wpt/css-tests/css21_dev/html4/c16-descendant-001.htm

26 lines
925 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Contextual selectors</title>
<link rel="help" href="http://www.w3.org/TR/REC-CSS1#contextual-selectors">
<link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="match" href="reference/c16-descendant-001-ref.htm">
<style type="text/css">
ul {color: green;}
p {color: red;}
html body div p {color: green;}
span, ul li li {color: red;}
</style>
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#descendant-selectors" title="5.5 Descendant selectors">
</head>
<body>
<div><p> This sentence should be green. </p></div>
<ul>
<li>
<span> </span> This sentence should be green.
</li>
</ul>
</body>
</html>