This tests selecting content starting in a shadow tree inside a user-select: all in an editable region in to outside the editable region.
To manually test, select "hello world WebKit rocks" below by a mouse drag from "h" to "s". WebKit should select "hello".

hello
world
WebKit
rocks