<!DOCTYPE html><html><head>
<title>NEGATED ID selector</title>
<style type="text/css">div.stub > * { color : red }
div.stub *:not(#foo) { color : lime }
</style>
<link rel="author" title="Daniel Glazman" href="http://glazman.org/">
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors">
<link rel="match" href="reference/three-paragraph-lime-characters.xht">
<meta name="flags" content="">
</head>
<body>
<div class="stub">
<p>This paragraph should be in green characters.</p>
<p id="foo2">This paragraph should be in green characters.</p>
<p id="foo">
<span>This paragraph should be in green characters.</span>
</p>
</div>
</body></html>