Skip to content

@roblg /duplicated selectors.html secret
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple test case for chaining duplicate CSS selectors.
<html>
<head>
<!--
Uncomment this if you want to have IE pretend to be IE8
<meta http-equiv="X-UA-Compatible" content="IE=8">
-->
<style type="text/css">
.examples .first.first { color: green;}
.examples .first { color: red;}
#list#list .second {color: green;}
#list .second {color: red;}
#list > :last-child:last-child {color: green;}
#list > :last-child {color: black;}
</style>
</head>
<body>
<div id="list" class="examples">
<div class="first example">If chaining class selectors works, this will be green.</div>
<div class="second example">If chaining ID selectors works, this will be green.</div>
<div class="third example">If chaining psuedoclasses works, this will be green.</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.