mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-16 12:52:46 +00:00
12a2750d1e
Parse them, and also don't give up completely if the first language listed doesn't match an element.
19 lines
321 B
HTML
19 lines
321 B
HTML
<html lang="en">
|
|
<style>
|
|
div {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 1px solid black;
|
|
}
|
|
div:lang(en) {
|
|
background-color: red;
|
|
}
|
|
div:lang("fr",de) {
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
<div>Red</div>
|
|
<div lang="fr">Blue</div>
|
|
<div lang="de">Blue</div>
|
|
</html>
|