DocumentOrShadowRoot-prototype-elementFromPoint.html
Details
- Test
/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | document.elementFromPoint and shadow.ElementFromPoint must return the shadow host of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: inline shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadow.ElementFromPoint must return the shadow host of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadow.ElementFromPoint must return the shadow host of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: inline-block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadowRoot.elementFromPoint must return the shadow host when the hit-tested text node is assigned to a slot and the host has display: inline shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadowRoot.elementFromPoint must return the shadow host when the hit-tested text node is assigned to a slot and the host has display: block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadowRoot.elementFromPoint must return the shadow host when the hit-tested text node is assigned to a slot and the host has display: inline-block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadowRoot.elementFromPoint must return the element assigned to a slot when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: inline shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadowRoot.elementFromPoint must return the element assigned to a slot when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint and shadowRoot.elementFromPoint must return the element assigned to a slot when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: inline-block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint must return the shadow host of the hit-tested element under a shadow root and shadowRoot.elementFromPoint must return the element parent of the hit-tested text node under the point when the shadow host has display: inline assert_equals: expected Element node <test-element style="display: inline;"></test-element> but got Element node <span>text</span> |
| FAIL | document.elementFromPoint must return the shadow host of the hit-tested element under a shadow root and shadowRoot.elementFromPoint must return the element parent of the hit-tested text node under the point when the shadow host has display: block assert_equals: expected Element node <test-element style="display: block;"></test-element> but got Element node <span>text</span> |
| FAIL | document.elementFromPoint must return the shadow host of the hit-tested element under a shadow root and shadowRoot.elementFromPoint must return the element parent of the hit-tested text node under the point when the shadow host has display: inline-block assert_equals: expected Element node <test-element style="display: inline-block;"></test-element> but got Element node <span>text</span> |
| FAIL | document.elementFromPoint must return the shadow host and shadowRoot.elementFromPoint must return the slot parent of the fallback text when the hit-tested text node is a fallback content and the host has display: inline shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint must return the shadow host and shadowRoot.elementFromPoint must return the slot parent of the fallback text when the hit-tested text node is a fallback content and the host has display: block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint must return the shadow host and shadowRoot.elementFromPoint must return the slot parent of the fallback text when the hit-tested text node is a fallback content and the host has display: inline-block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint, innerShadow.elementFromPoint must return a child element assigned to a slot when the hit-tested text node is assigned to a slot in the shadow tree of the child element and the outer shadow host has display: inline shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint, innerShadow.elementFromPoint must return a child element assigned to a slot when the hit-tested text node is assigned to a slot in the shadow tree of the child element and the outer shadow host has display: block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint, innerShadow.elementFromPoint must return a child element assigned to a slot when the hit-tested text node is assigned to a slot in the shadow tree of the child element and the outer shadow host has display: inline-block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint, innerShadow.elementFromPoint must return a child element with its own shadow tree assigned to a slot when the hit-tested text node is its direct child and the outer shadow host has display: inline shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint, innerShadow.elementFromPoint must return a child element with its own shadow tree assigned to a slot when the hit-tested text node is its direct child and the outer shadow host has display: block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint, innerShadow.elementFromPoint must return a child element with its own shadow tree assigned to a slot when the hit-tested text node is its direct child and the outer shadow host has display: inline-block shadow.elementFromPoint is not a function |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint must return a child element with its own shadow tree assigned to a slot when the hit-tested text node is a child of another element and innerShadow.elementFromPoint must return the parent element of the hit-tested text node under it when the outer shadow host has display: inline assert_equals: expected Element node <inner-host></inner-host> but got Element node <span>hello</span> |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint must return a child element with its own shadow tree assigned to a slot when the hit-tested text node is a child of another element and innerShadow.elementFromPoint must return the parent element of the hit-tested text node under it when the outer shadow host has display: block assert_equals: expected Element node <inner-host></inner-host> but got Element node <span>hello</span> |
| FAIL | document.elementFromPoint, shadowRoot.elementFromPoint must return a child element with its own shadow tree assigned to a slot when the hit-tested text node is a child of another element and innerShadow.elementFromPoint must return the parent element of the hit-tested text node under it when the outer shadow host has display: inline-block assert_equals: expected Element node <inner-host></inner-host> but got Element node <span>hello</span> |
| FAIL | document.elementsFromPoint and shadow.elementsFromPoint must return the shadow host and its ancestors of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: inline assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline;"></test-element>, Element node <div id="container"><test-element style="display: inline;..., Ele… |
| FAIL | document.elementsFromPoint and shadow.elementsFromPoint must return the shadow host and its ancestors of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: block;"></test-element>, Element node <div id="container"><test-element style="display: block;"..., Elem… |
| FAIL | document.elementsFromPoint and shadow.elementsFromPoint must return the shadow host and its ancestors of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: inline-block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline-block;"></test-element>, Element node <div id="container"><test-element style="display: inline-..… |
| FAIL | document.elementsFromPoint and shadowRoot.elementsFromPoint must return the shadow host and its ancestors when the hit-tested text node is assigned to a slot and the host has display: inline assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline;">text</test-element>, Element node <div id="container"><test-element style="display: inline;...,… |
| FAIL | document.elementsFromPoint and shadowRoot.elementsFromPoint must return the shadow host and its ancestors when the hit-tested text node is assigned to a slot and the host has display: block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: block;">text</test-element>, Element node <div id="container"><test-element style="display: block;"..., … |
| FAIL | document.elementsFromPoint and shadowRoot.elementsFromPoint must return the shadow host and its ancestors when the hit-tested text node is assigned to a slot and the host has display: inline-block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline-block;">text</test-e..., Element node <div id="container"><test-element style="display: inline-..… |
| FAIL | document.elementsFromPoint and shadowRoot.elementsFromPoint must return the element assigned to a slot and its non-shadow ancestors when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: inline assert_array_equals: lengths differ, expected array [Element node <span>text</span>, Element node <test-element style="display: inline;"><span>text</span><..., Element node <div id="container"><test-e… |
| FAIL | document.elementsFromPoint and shadowRoot.elementsFromPoint must return the element assigned to a slot and its non-shadow ancestors when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: block assert_array_equals: lengths differ, expected array [Element node <span>text</span>, Element node <test-element style="display: block;"><span>text</span></..., Element node <div id="container"><test-e… |
| FAIL | document.elementsFromPoint and shadowRoot.elementsFromPoint must return the element assigned to a slot and its non-shadow ancestors when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: inline-block assert_array_equals: lengths differ, expected array [Element node <span>text</span>, Element node <test-element style="display: inline-block;"><span>text</..., Element node <div id="container"><test-e… |
| FAIL | document.elementsFromPoint must return the shadow host and its ancestors of the hit-tested element under a shadow root andshadowRoot.elementsFromPoint must return the element parent and its non-shadow ancestors of the hit-tested text node under the point when the shadow host has display: inline assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline;"></test-element>, Element node <div id="container"><test-element style="display: inline;..., Ele… |
| FAIL | document.elementsFromPoint must return the shadow host and its ancestors of the hit-tested element under a shadow root andshadowRoot.elementsFromPoint must return the element parent and its non-shadow ancestors of the hit-tested text node under the point when the shadow host has display: block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: block;"></test-element>, Element node <div id="container"><test-element style="display: block;"..., Elem… |
| FAIL | document.elementsFromPoint must return the shadow host and its ancestors of the hit-tested element under a shadow root andshadowRoot.elementsFromPoint must return the element parent and its non-shadow ancestors of the hit-tested text node under the point when the shadow host has display: inline-block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline-block;"></test-element>, Element node <div id="container"><test-element style="display: inline-..… |
| FAIL | document.elementsFromPoint must return the shadow host and its ancestors and shadowRoot.elementsFromPoint must return the slot parent of the fallback text and its non-shadow ancestors when the hit-tested text node is a fallback content and the host has display: inline assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline;"></test-element>, Element node <div id="container"><test-element style="display: inline;..., Ele… |
| FAIL | document.elementsFromPoint must return the shadow host and its ancestors and shadowRoot.elementsFromPoint must return the slot parent of the fallback text and its non-shadow ancestors when the hit-tested text node is a fallback content and the host has display: block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: block;"></test-element>, Element node <div id="container"><test-element style="display: block;"..., Elem… |
| FAIL | document.elementsFromPoint must return the shadow host and its ancestors and shadowRoot.elementsFromPoint must return the slot parent of the fallback text and its non-shadow ancestors when the hit-tested text node is a fallback content and the host has display: inline-block assert_array_equals: lengths differ, expected array [Element node <test-element style="display: inline-block;"></test-element>, Element node <div id="container"><test-element style="display: inline-..… |
| FAIL | shadowRoot.elementsFromPoint must behave the same with document.elementsFromPoint regarding HTML element assert_array_equals: lengths differ, expected array [Element node <test-element style="display: block;"></test-element>, Element node <div><test-element style="display: block;"></test-element..., Elem… |
| FAIL | elementsFromPoint should return all elements under a point, even when context object is not connected assert_equals: expected 4 but got 1 |