зеркало из https://github.com/mozilla/gecko-dev.git
18 строки
313 B
HTML
18 строки
313 B
HTML
<!doctype html>
|
|
<style>
|
|
div::first-line {
|
|
color: yellow:
|
|
}
|
|
.foo span {
|
|
display: none;
|
|
}
|
|
.foo::first-line {
|
|
color: red;
|
|
}
|
|
</style>
|
|
<div><span>Yo, I'm a first-line<span> really</span></span>
|
|
<script>
|
|
document.body.offsetTop;
|
|
document.querySelector('div').classList.add('foo');
|
|
</script>
|