Selection-getComposedRanges-range-update.html
Details
- Test
/selection/shadow-dom/tentative/Selection-getComposedRanges-range-update.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | If selection crosses shadow boundaries, getRangeAt(0) should throw an IndexSizeError because the end is not in the document tree. assert_throws_dom: function "function () { selection.getRangeAt(0) }" did not throw |
| PASS | modify getRangeAt() range: setStart() to disconnected node will collapse and remove the live range from the selection. |
| PASS | modify getRangeAt() range: setEnd() crosses shadow boundary into the shadow DOM and after start, which collapses live range. Composed selection range is not collapsed. |
| PASS | modify getRangeAt() range: setStart() crosses shadow boundary into the shadow DOM and before end, which collapses live range. Composed selection range is not collapsed. |
| PASS | modify getRangeAt() range: setStart() crosses shadow boundary into the shadow DOM and after end, which collapses both live range and composed selection range. |
| PASS | modify getRangeAt() range: selectNode() innerHost for all ranges. |
| PASS | modify getRangeAt() range: collapse() collapses all ranges. |
| PASS | modify createRange() range: adding to selection sets the selection |
| PASS | modify createRange() range: added to selection before setStart/setEnd calls. |