Since we're resolving <shadow> from the youngest shadow dom, the distributor of <shadow> cannot include all the distributed element. We have to change the code of ContentDistributor::distribute().
I am sorry, can you elaborate a bit more on the nature of the problem? It's not clear what the issue is.
Ah, sorry. I had a plan for refactoring about it.