зеркало из https://github.com/mozilla/gecko-dev.git
23 строки
330 B
HTML
23 строки
330 B
HTML
<!doctype html>
|
|
<style>
|
|
.foo > div::before {
|
|
display: block;
|
|
width: 100px;
|
|
height: 100px;
|
|
background: red;
|
|
content: "";
|
|
}
|
|
.foo.bar > div::before {
|
|
background: green;
|
|
}
|
|
</style>
|
|
<div class="foo">
|
|
<div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
onload = function() {
|
|
document.querySelector('.foo').className = 'foo bar';
|
|
}
|
|
</script>
|