Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Simple test case for chaining duplicate CSS selectors.

View duplicated selectors.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<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.