Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/selectors/descendent-selector-008.xht - WPT Dashboard Interop Dashboard
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Descendent selector with ID attribute does not match elements without the ID attribute</title>
<link rel="match" href="descendent-selector-004-ref.xht"/>
<meta name="assert" content="Descendent selector with attribute applies only to applicable elements." />
<style type="text/css">
div em[id]
{
color: red;
}
</style>
</head>
<body>
<p>Test passes if there is no red visible on the page.</p>
<div>
<em>Filler Text</em>
</div>
</body>
</html>