Source code
Revision control
Copy as Markdown
Other Tools
<head>
<title>NEGATED type element selector with universal namespace</title>
div.test *:not(*|div) { display : block ; margin-bottom : 1em ;
background-color : red }
div.test > *:not(*|p):not(*|div) { background-color : lime }
div.stub > *:not(*|div) { background-color : lime }
]]></style>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
<meta name="flags" content=" namespace" />
</head>
<body>
<div class="test">
<div class="stub">
<p>This paragraph should have a green background.</p>
<p xmlns="">This paragraph should have a green background.</p>
</div>
<address>This address should have a green background.</address>
<t xmlns="">This paragraph should have a green background.</t>
</div>
</body>
</html>