Skip to content

Instantly share code, notes, and snippets.

@Potherca
Created August 22, 2013 14:16
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 Potherca/6307763 to your computer and use it in GitHub Desktop.
Save Potherca/6307763 to your computer and use it in GitHub Desktop.
Nested pseudo elements
/**
* Nested pseudo elements
*
* According to [the spec](http://www.w3.org/TR/css3-content/#nesting) pseudo should be allowed to be nested.
*/
* {padding:1em;}
div {
content: 'A';
outline: 1px solid orange;
}
div::before {
content: 'B';
outline: 1px solid red;
}
div::before::before {
content: 'C';
outline: 1px solid lime;
}
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment