gecko-dev/layout/style/crashtests/1455108.html
Emilio Cobos Álvarez 3e3d930acb Bug 1455108: Don't reparent first-line stuff in display: none subtrees. r=heycam
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
2018-04-19 18:18:35 +02:00

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>