mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
3e3d930acb
We may no longer know what the right parent style is, and it's not like it matters anyway, the frame tree under us is dead, including placeholders and such holding from us. MozReview-Commit-ID: 1RHTwvKy0zQ --HG-- extra : rebase_source : 26e9d393d8edc0f068736cfa1cf1cf630e8d55fa
18 lines
313 B
HTML
18 lines
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>
|