gecko-dev/layout/base/crashtests/1461749.html
Emilio Cobos Álvarez fb4762b5e6 Bug 1461749: Fix slow path for finding the next sibling frame for appending in presence of Shadow DOM. r=mats
In this case we have a shadow hoot with display: contents, with no children.
Those children wouldn't be flattened tree children of the shadow host.

Instead of using the last light dom child and seek to it, use
FlattenedChildIterator's reverse iteration.

MozReview-Commit-ID: 18XL5Ong7ww

--HG--
extra : rebase_source : 2d34bd5b1fdd509a069ffa5052a7b7b3302be24c
2018-05-23 18:20:33 +02:00

20 lines
388 B
HTML

<style>
:last-of-type {
display: contents;
}
</style>
<script>
function start() {
o1 = document.createElement('footer')
o2 = document.createElement('t')
document.documentElement.appendChild(o1)
document.documentElement.appendChild(o2)
o3 = o1.attachShadow({
mode: "open"
})
o2.getClientRects()
o3.innerHTML = ">"
}
window.addEventListener('load', start)
</script>