mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
fb4762b5e6
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
20 lines
388 B
HTML
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>
|