Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/syntax/ident-012.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: Valid Identifiers (starting with escaped digits, control codes) as Classes and IDs</title>
<link rel="match" href="ident-012-ref.xht"/>
<style type="text/css">
.one { color: red; background: white; }
.\6ident, .one { color: green; }
.two { color: red; background: white; }
#\6ident, .two { color: green; }
.three { color: red; background: white; }
.\36ident, .three { color: green; }
.four { color: red; background: white; }
#\36ident, .four { color: green; }
</style>
</head>
<body>
<p class="one">This should be green.</p>
<p class="two">This should be green.</p>
<p class="three">This should be green.</p>
<p class="four">This should be green.</p>
</body>
</html>