Skip to content

Instantly share code, notes, and snippets.

@Ambroos
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ambroos/e80806b50faa213832cd to your computer and use it in GitHub Desktop.
Save Ambroos/e80806b50faa213832cd to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
.a, .a.ab-a-specific, .a.ba-a-specific.ba-a-specific-specific { color: #aaa; }
.b, .b.ab-b-specific.ab-b-specific-specific, .b.ba-b-specific { color: #bbb; }
</style>
</head>
<body>
<div class="ab a ab-a-specific b ab-b-specific ab-b-specific-specific">AB</div>
<div class="ba b ba-b-specific a ba-a-specific ba-a-specific-specific">BA</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment