mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
12 lines
214 B
HTML
12 lines
214 B
HTML
|
<!DOCTYPE html>
|
||
|
<style>
|
||
|
div::after { color: green }
|
||
|
div.foo::after { content: "Bar" }
|
||
|
</style>
|
||
|
<div></div>
|
||
|
<script>
|
||
|
onload = function() {
|
||
|
document.querySelector('div').classList.add('foo');
|
||
|
}
|
||
|
</script>
|