Skip to content

Instantly share code, notes, and snippets.

@luiz
Created October 27, 2014 14:19
Show Gist options
  • Save luiz/9799bade9061f44cb0c6 to your computer and use it in GitHub Desktop.
Save luiz/9799bade9061f44cb0c6 to your computer and use it in GitHub Desktop.
:lang pseudoclass tests
/* :lang pseudoclass tests */
:lang(fr) > p {
background-color: yellow;
}
:lang(fr) > strong {
font-style: italic;
}
strong:lang(pt) {
color: red;
}
<div lang="fr">
<p>Le livre est sur la table.</p>
<p>Est-ce que <strong>vous</strong> comprennez ça?</p>
</div>
<div lang="pt">
<p>O livro está sobre a mesa.</p>
<p><strong>Você</strong> entende isso?</p>
</div>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment