[cssom-view] Apply transforms for elementFromPoint, elementsFromPoint, caretPositionFromPoint. https://www.w3.org/Bugs/Public/show_bug.cgi?id=15430

Thu, 19 Sep 2013 16:00:40 +0200

author
Simon Pieters <simonp@opera.com>
date
Thu, 19 Sep 2013 16:00:40 +0200
changeset 9219
0e33c7674d1e
parent 9218
6091febd3717
child 9220
2623f63c16ee

[cssom-view] Apply transforms for elementFromPoint, elementsFromPoint, caretPositionFromPoint. https://www.w3.org/Bugs/Public/show_bug.cgi?id=15430

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	Thu Sep 19 15:21:51 2013 +0200
     1.2 +++ b/cssom-view/Overview.html	Thu Sep 19 16:00:40 2013 +0200
     1.3 @@ -868,7 +868,7 @@
     1.4   <var>y</var> is greater than the <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any), or there is no <a href="#viewport">viewport</a>
     1.5   associated with the document, return null and terminate these steps.
     1.6   <li><p>If there is a <a href="#layout-box">layout box</a> in the <a href="#viewport">viewport</a> that would be a target for hit testing at coordinates <var>x</var>,<var>y</var>,
     1.7 - return the associated element and terminate these steps.
     1.8 + when applying the <a href="#transforms">transforms</a> that apply to the descendants of the <a href="#viewport">viewport</a>, return the associated element and terminate these steps.
     1.9   <li><p>If the document has a root element, return the root element and terminate these steps.
    1.10   <li><p>Return null.
    1.11  </ol>
    1.12 @@ -884,7 +884,8 @@
    1.13   <var>y</var> is greater than the <a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar (if any), or there is no <a href="#viewport">viewport</a>
    1.14   associated with the document, return <var>sequence</var> and terminate these steps.
    1.15   <li><p>For each <a href="#layout-box">layout box</a> in the <a href="#viewport">viewport</a>, in paint order, starting with the topmost box, that would be a target for hit testing at
    1.16 - coordinates <var>x</var>,<var>y</var> even if nothing would be overlapping it, append the associated element to <var>sequence</var>.
    1.17 + coordinates <var>x</var>,<var>y</var> even if nothing would be overlapping it, when applying the <a href="#transforms">transforms</a> that apply to the descendants of the
    1.18 + <a href="#viewport">viewport</a>, append the associated element to <var>sequence</var>.
    1.19   <li><p>If the document has a root element, and the last item in <var>sequence</var> is not the root element, append the root element to <var>sequence</var>.
    1.20   <li><p>Return <var>sequence</var>.
    1.21  </ol>
    1.22 @@ -900,13 +901,12 @@
    1.23   (if any) return null.</li>
    1.24   <li><p>If at the coordinates <var>x</var>,<var>y</var>
    1.25   in the <a href="#viewport">viewport</a> no text insertion point indicator would have
    1.26 - been inserted return null.</li>
    1.27 + been inserted when applying the <a href="#transforms">transforms</a> that apply to the descendants of the <a href="#viewport">viewport</a>, return null.</li>
    1.28   <li>
    1.29    <p>If at the coordinates <var>x</var>,<var>y</var>
    1.30    in the <a href="#viewport">viewport</a> a text insertion point indicator would have
    1.31 -  been inserted in a text entry widget which is also a replaced element
    1.32 -  return a <a href="#caret-position">caret position</a> with its properties set as
    1.33 -  follows:</p>
    1.34 +  been inserted in a text entry widget which is also a replaced element, when applying the <a href="#transforms">transforms</a> that apply to the descendants of the
    1.35 +  <a href="#viewport">viewport</a>, return a <a href="#caret-position">caret position</a> with its properties set as follows:</p>
    1.36    <dl>
    1.37     <dt><a href="#caret-node">caret node</a></dt>
    1.38     <dd><p>The node corresponding to the text entry widget.</dd>
    1.39 @@ -921,8 +921,8 @@
    1.40    <p>Otherwise, return a <a href="#caret-position">caret position</a> where the
    1.41    <a href="#caret-range">caret range</a> is a collapsed
    1.42    <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#range">Range</a></code> object for the position
    1.43 -  where the text insertion point indicator would have been inserted and
    1.44 -  the other properties are set as follows:</p>
    1.45 +  where the text insertion point indicator would have been inserted when applying the <a href="#transforms">transforms</a> that apply to the descendants of the
    1.46 +  <a href="#viewport">viewport</a>, and the other properties are set as follows:</p>
    1.47    <dl>
    1.48     <dt><a href="#caret-node">caret node</a></dt>
    1.49     <dd><p>The <code class="external" data-anolis-spec="dom" title="dom-Range-startContainer"><a href="http://dom.spec.whatwg.org/#dom-range-startcontainer">startContainer</a></code>
     2.1 --- a/cssom-view/Overview.src.html	Thu Sep 19 15:21:51 2013 +0200
     2.2 +++ b/cssom-view/Overview.src.html	Thu Sep 19 16:00:40 2013 +0200
     2.3 @@ -829,7 +829,7 @@
     2.4   <var>y</var> is greater than the <span>viewport</span> height excluding the size of a rendered scroll bar (if any), or there is no <span>viewport</span>
     2.5   associated with the document, return null and terminate these steps.
     2.6   <li><p>If there is a <span>layout box</span> in the <span>viewport</span> that would be a target for hit testing at coordinates <var>x</var>,<var>y</var>,
     2.7 - return the associated element and terminate these steps.
     2.8 + when applying the <span>transforms</span> that apply to the descendants of the <span>viewport</span>, return the associated element and terminate these steps.
     2.9   <li><p>If the document has a root element, return the root element and terminate these steps.
    2.10   <li><p>Return null.
    2.11  </ol>
    2.12 @@ -845,7 +845,8 @@
    2.13   <var>y</var> is greater than the <span>viewport</span> height excluding the size of a rendered scroll bar (if any), or there is no <span>viewport</span>
    2.14   associated with the document, return <var>sequence</var> and terminate these steps.
    2.15   <li><p>For each <span>layout box</span> in the <span>viewport</span>, in paint order, starting with the topmost box, that would be a target for hit testing at
    2.16 - coordinates <var>x</var>,<var>y</var> even if nothing would be overlapping it, append the associated element to <var>sequence</var>.
    2.17 + coordinates <var>x</var>,<var>y</var> even if nothing would be overlapping it, when applying the <span>transforms</span> that apply to the descendants of the
    2.18 + <span>viewport</span>, append the associated element to <var>sequence</var>.
    2.19   <li><p>If the document has a root element, and the last item in <var>sequence</var> is not the root element, append the root element to <var>sequence</var>.
    2.20   <li><p>Return <var>sequence</var>.
    2.21  </ol>
    2.22 @@ -861,13 +862,12 @@
    2.23   (if any) return null.</p></li>
    2.24   <li><p>If at the coordinates <var>x</var>,<var>y</var>
    2.25   in the <span>viewport</span> no text insertion point indicator would have
    2.26 - been inserted return null.</p></li>
    2.27 + been inserted when applying the <span>transforms</span> that apply to the descendants of the <span>viewport</span>, return null.</p></li>
    2.28   <li>
    2.29    <p>If at the coordinates <var>x</var>,<var>y</var>
    2.30    in the <span>viewport</span> a text insertion point indicator would have
    2.31 -  been inserted in a text entry widget which is also a replaced element
    2.32 -  return a <span>caret position</span> with its properties set as
    2.33 -  follows:</p>
    2.34 +  been inserted in a text entry widget which is also a replaced element, when applying the <span>transforms</span> that apply to the descendants of the
    2.35 +  <span>viewport</span>, return a <span>caret position</span> with its properties set as follows:</p>
    2.36    <dl>
    2.37     <dt><span>caret node</span></dt>
    2.38     <dd><p>The node corresponding to the text entry widget.</p></dd>
    2.39 @@ -882,8 +882,8 @@
    2.40    <p>Otherwise, return a <span>caret position</span> where the
    2.41    <span>caret range</span> is a collapsed
    2.42    <code data-anolis-spec=dom>Range</code> object for the position
    2.43 -  where the text insertion point indicator would have been inserted and
    2.44 -  the other properties are set as follows:</p>
    2.45 +  where the text insertion point indicator would have been inserted when applying the <span>transforms</span> that apply to the descendants of the
    2.46 +  <span>viewport</span>, and the other properties are set as follows:</p>
    2.47    <dl>
    2.48     <dt><span>caret node</span></dt>
    2.49     <dd><p>The <code data-anolis-spec=dom title=dom-Range-startContainer>startContainer</code>

mercurial