blob: 62e9061a9fc4c80fa8accad63e4b69b2497474b4 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Syntax and parsing of unknown pseudo-classes and pseudo-elements</title>
<style type="text/css">
p { background: lime; }
p * { background: lime; }
p > * { background: lime; }
p + * { background: lime; }
p ~ * { background: lime; }
/* let's try some pseudos that are not valid CSS but are likely to
be implemented as extensions in some UAs. These should not be
recognised, as UAs implementing such extensions should use the
:-vnd-ident syntax. */
:canvas { background: red; }
:viewport { background: red; }
:window { background: red; }
:menu { background: red; }
:table { background: red; }
:select { background: red; }
::canvas { background: red; }
::viewport { background: red; }
::window { background: red; }
::menu { background: red; }
::table { background: red; }
::select { background: red; }
</style>
<link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
<link rel="prev" href="css3-modsel-160.html" title="Syntax and parsing of unknown pseudo-classes">
<link rel="next" href="css3-modsel-166.html" title=":first-letter with ::first-letter">
<link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first-child and :last-child">
<link rel="up" href="./index.html">
<link rel="top" href="../../index.html">
</head>
<body>
<p>This line should have a green background.</p>
<p>
UAs may render the following element as a pop up menu. If so, please ensure the menu is unstyled (or green).
<select size="1">
<option>This should</option>
<option>have a green</option>
<option>background.</option>
</select>
</p>
<table><tr><td>This line should have a green background (or it might be unstyled).</td></tr></table>
<!-- only allowed to be unstyled if + and ~ are not supported -->
</body>
</html>