Tue, 25 Jun 2013 12:16:03 +0200
[cssom-view] Make elementsFromPoint more consistent with elementFromPoint.
cssom-view/Overview.html | file | annotate | diff | comparison | revisions | |
cssom-view/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/cssom-view/Overview.html Tue Jun 25 08:39:30 2013 +0200 1.2 +++ b/cssom-view/Overview.html Tue Jun 25 12:16:03 2013 +0200 1.3 @@ -25,7 +25,7 @@ 1.4 1.5 <h1>CSSOM View Module</h1> 1.6 1.7 - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 24 June 2013</h2> 1.8 + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 25 June 2013</h2> 1.9 1.10 <dl> 1.11 1.12 @@ -92,7 +92,7 @@ 1.13 can be found in the <a href="http://www.w3.org/TR/">W3C technical reports 1.14 index at http://www.w3.org/TR/.</a></em> 1.15 1.16 -<p>This is the 24 June 2013 Editor's Draft of CSSOM View. Please send 1.17 +<p>This is the 25 June 2013 Editor's Draft of CSSOM View. Please send 1.18 comments to 1.19 <a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a> 1.20 (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>) 1.21 @@ -729,14 +729,15 @@ 1.22 <a href="#viewport">viewport</a> associated with the document, the method must return null.</p> 1.23 1.24 <p class="note">The <code title="dom-Document-elementFromPoint"><a href="#dom-document-elementfrompoint">elementFromPoint()</a></code> method does not necessarily return the top-most painted element. For 1.25 -instnace, an element can be excluded from being a target for hit testing by using the 'pointer-events' CSS property. 1.26 +instance, an element can be excluded from being a target for hit testing by using the 'pointer-events' CSS property. 1.27 1.28 <p class="atrisk">The <dfn id="dom-document-elementsfrompoint" title="dom-Document-elementsFromPoint"><code>elementsFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return a sequence of 1.29 elements at coordinates <var>x</var>,<var>y</var> in the <a href="#viewport">viewport</a>. The sequence to be returned is sorted by paint order, with the first element as 1.30 -the topmost in the order. If either argument is negative, <var>x</var> is greater than the <a href="#viewport">viewport</a> width excluding the size of a rendered scroll 1.31 -bar (if any), or <var>y</var> is greater than the <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any), the method must return an 1.32 -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 1.33 -otherwise. If there is no <a href="#viewport">viewport</a> associated with the document, the method must return an empty sequence. 1.34 +the topmost in the order. Elements that would not be a target for hit testing at coordinates <var>x</var>,<var>y</var> even if nothing was overlapping it must 1.35 +not be included in the list. If either argument is negative, <var>x</var> is greater than the <a href="#viewport">viewport</a> width excluding the size of a rendered 1.36 +scroll bar (if any), or <var>y</var> is greater than the <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any), the method must 1.37 +return an 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 1.38 +sequence otherwise. If there is no <a href="#viewport">viewport</a> associated with the document, the method must return an empty sequence. 1.39 1.40 <p>The <dfn id="dom-document-caretpositionfrompoint" title="dom-Document-caretPositionFromPoint"><code>caretPositionFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return the 1.41 result of running these steps:</p>
2.1 --- a/cssom-view/Overview.src.html Tue Jun 25 08:39:30 2013 +0200 2.2 +++ b/cssom-view/Overview.src.html Tue Jun 25 12:16:03 2013 +0200 2.3 @@ -691,14 +691,15 @@ 2.4 <span>viewport</span> associated with the document, the method must return null.</p> 2.5 2.6 <p class=note>The <code title=dom-Document-elementFromPoint>elementFromPoint()</code> method does not necessarily return the top-most painted element. For 2.7 -instnace, an element can be excluded from being a target for hit testing by using the 'pointer-events' CSS property. 2.8 +instance, an element can be excluded from being a target for hit testing by using the 'pointer-events' CSS property. 2.9 2.10 <p class=atrisk>The <dfn title=dom-Document-elementsFromPoint><code>elementsFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return a sequence of 2.11 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 2.12 -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 2.13 -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 2.14 -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 2.15 -otherwise. If there is no <span>viewport</span> associated with the document, the method must return an empty sequence. 2.16 +the topmost in the order. Elements that would not be a target for hit testing at coordinates <var>x</var>,<var>y</var> even if nothing was overlapping it must 2.17 +not be included in the list. If either argument is negative, <var>x</var> is greater than the <span>viewport</span> width excluding the size of a rendered 2.18 +scroll 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 2.19 +return an 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 2.20 +sequence otherwise. If there is no <span>viewport</span> associated with the document, the method must return an empty sequence. 2.21 2.22 <p>The <dfn title=dom-Document-caretPositionFromPoint><code>caretPositionFromPoint(<var>x</var>, <var>y</var>)</code></dfn> method must return the 2.23 result of running these steps:</p>