Files
servo/tests/wpt/css-tests/css21_dev/html4/child-selector-003.htm

23 lines
812 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Child selector</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#child-selectors">
<link rel="match" href="reference/child-selector-003-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Child selectors apply to child elements.">
<style type="text/css">
div > h1
{
color: green;
}
</style>
</head>
<body>
<p>Test passes if the "Filler Text" below is green.</p>
<div>
<h1>Filler Text</h1>
</div>
</body>
</html>