Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Simple test case for chaining duplicate CSS selectors.
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;}
<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>
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.