<!DOCTYPE html><html><head>
<title>Multiple ID selectors</title>
<style type="text/css">
p { background: green; color: white; }
#test#fail { background: red; color: yellow; }
#fail#test { background: red; color: yellow; }
#fail { background: red; color: yellow; }
div { background: red; color: yellow; }
#pass#pass { background: green; color: white; }
</style>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors">
<link rel="match" href="reference/this-line-green-background.xht">
<meta name="flags" content="">
</head>
<body>
<p id="test">This line should be green.</p>
<div id="pass">This line should be green.</div>
</body></html>