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-013.xht - WPT Dashboard Interop Dashboard
<head>
<title>CSS Test: Valid Identifiers (starting with escaped -) as Classes and IDs</title>
<link rel="match" href="ident-000-ref.xht"/>
<style type="text/css">
.one { color: red; background: white; }
.\-ident, .one { color: green; }
.two { color: red; background: white; }
#\-ident, .two { color: green; }
</style>
</head>
<body>
<p class="one">This should be green.</p>
<p class="two">This should be green.</p>
</body>
</html>