This tests selecting content starting in a shadow tree inside a non-editable region in an editable region to outside the editable region.
To manually test, select "hello world WebKit" below by a mouse drag from the bottom right to the top left.
WebKit should not extend the selection to outside the shadow tree.