blob: 130e0724196a31bd7c71b2e55502994e8d086e4a [file] [log] [blame]
<html>
<head>
<title>Leading/trailing space in :nth-* and :lang pseudo-classes</title>
<style type="text/css">
/* Integer */
div:nth-child( 1 ) { background-color: yellow; }
/* Identifier */
div:nth-child( odd ) { color: green; }
div:lang( en-GB ) { background-color: silver; }
/* an+b */
div:nth-child( 2n ) { color: blue; }
</style>
</head>
<body>
<div>Green on Yellow</div>
<div lang="en-GB">Blue on Silver</div>
<div>Green</div>
<div>Blue</div>
<div>Green</div>
<div>Blue</div>
</body>
</html>