You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return null. If there is no element at the given position the method must return the root element, if any, or null otherwise. If there is no
728
729
<ahref="#viewport">viewport</a> associated with the document, the method must return null.</p>
729
730
731
+
<pclass="note">The <codetitle="dom-Document-elementFromPoint"><ahref="#dom-document-elementfrompoint">elementFromPoint()</a></code> method does not necessarily return the top-most painted element. For
732
+
instnace, an element can be excluded from being a target for hit testing by using the 'pointer-events' CSS property.
733
+
734
+
<pclass="atrisk">The <dfnid="dom-document-elementsfrompoint" title="dom-Document-elementsFromPoint"><code>elementsFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return a sequence of
735
+
elements at coordinates <var>x</var>,<var>y</var> in the <ahref="#viewport">viewport</a>. The sequence to be returned is sorted by paint order, with the first element as
736
+
the topmost in the order. If either argument is negative, <var>x</var> is greater than the <ahref="#viewport">viewport</a> width excluding the size of a rendered scroll
737
+
bar (if any), or <var>y</var> is greater than the <ahref="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any), the method must return an
738
+
empty sequence. If there is no element at the given position the method must return a sequence containing the root element, if any, or an empty sequence
739
+
otherwise. If there is no <ahref="#viewport">viewport</a> associated with the document, the method must return an empty sequence.
740
+
730
741
<p>The <dfnid="dom-document-caretpositionfrompoint" title="dom-Document-caretPositionFromPoint"><code>caretPositionFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return the
@@ -689,6 +690,16 @@ <h2>Extensions to the <code title>Document</code> Interface</h2>
689
690
return null. If there is no element at the given position the method must return the root element, if any, or null otherwise. If there is no
690
691
<span>viewport</span> associated with the document, the method must return null.</p>
691
692
693
+
<pclass=note>The <codetitle=dom-Document-elementFromPoint>elementFromPoint()</code> method does not necessarily return the top-most painted element. For
694
+
instnace, an element can be excluded from being a target for hit testing by using the 'pointer-events' CSS property.
695
+
696
+
<pclass=atrisk>The <dfntitle=dom-Document-elementsFromPoint><code>elementsFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return a sequence of
697
+
elements at coordinates <var>x</var>,<var>y</var> in the <span>viewport</span>. The sequence to be returned is sorted by paint order, with the first element as
698
+
the topmost in the order. If either argument is negative, <var>x</var> is greater than the <span>viewport</span> width excluding the size of a rendered scroll
699
+
bar (if any), or <var>y</var> is greater than the <span>viewport</span> height excluding the size of a rendered scroll bar (if any), the method must return an
700
+
empty sequence. If there is no element at the given position the method must return a sequence containing the root element, if any, or an empty sequence
701
+
otherwise. If there is no <span>viewport</span> associated with the document, the method must return an empty sequence.
702
+
692
703
<p>The <dfntitle=dom-Document-caretPositionFromPoint><code>caretPositionFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return the
0 commit comments