blob: 8b22ebd79d846e3aec72555391f3240af343b8d7 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Combinations: classes and IDs</title>
<style type="text/css"><![CDATA[
p { background: red; color: yellow; }
p:not(#other).class:not(.fail).test#id#id { background: green; color: white; }
div { background: green; color: white; }
div:not(#theid).class:not(.fail).test#theid#theid { background: red; color: yellow; }
div:not(#other).notclass:not(.fail).test#theid#theid { background: red; color: yellow; }
div:not(#other).class:not(.test).test#theid#theid { background: red; color: yellow; }
div:not(#other).class:not(.fail).nottest#theid#theid { background: red; color: yellow; }
div:not(#other).class:not(.fail).nottest#theid#other { background: red; color: yellow; }
]]></style>
<link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
<link rel="prev" href="css3-modsel-175c.xml" title="Parsing: Numbers in classes"/>
<link rel="next" href="css3-modsel-177a.xml" title="Parsing : vs ::"/>
<link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
<link rel="up" href="./index.html"/>
<link rel="top" href="../../index.html"/>
</head>
<body>
<p id="id" class="class test">This line should be green.</p>
<div id="theid" class="class test">This line should be green.</div>
</body>
</html>