Files
servo/tests/wpt/css-tests/css21_dev/html4/c15-ids-000.htm

23 lines
912 B
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: ID as selector</title>
<link rel="help" href="http://www.w3.org/TR/REC-CSS1#id-as-selector">
<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/c12-grouping-000-ref.htm">
<style type="text/css">
body {color: red;}
#test1 {color: green;}
#test2 {color: green;}
p#test3 {color: green;}
</style>
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#id-selectors" title="5.9 ID selectors">
</head>
<body>
<p id="test1"> This sentence should be green. </p>
<p id="test2"> This sentence should be green. </p>
<p id="test3"> This sentence should be green. </p>
</body>
</html>