Shadow DOM selection page

This page demos detecting the selection range within a shadow root, for Safari, which does not yet support ShadowRoot.getSelection. (It still works in Chrome, it just uses the native version.) Open the console to see output—the blue outline is the first root, and the red is the inner root.

TODOs

Selection

Content is below me
I'm some content in the DOM
^^ That's my host above