Skip to content

Commit 3a5f50c

Browse files
author
Simon Pieters
committed
[cssom-view] Apply transforms for elementFromPoint, elementsFromPoint, caretPositionFromPoint. https://www.w3.org/Bugs/Public/show_bug.cgi?id=15430
1 parent c7eea9e commit 3a5f50c

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

cssom-view/Overview.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ <h2 id="extensions-to-the-document-interface"><span class="secno">6 </span>Exten
868868
<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>
869869
associated with the document, return null and terminate these steps.
870870
<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>,
871-
return the associated element and terminate these steps.
871+
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.
872872
<li><p>If the document has a root element, return the root element and terminate these steps.
873873
<li><p>Return null.
874874
</ol>
@@ -884,7 +884,8 @@ <h2 id="extensions-to-the-document-interface"><span class="secno">6 </span>Exten
884884
<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>
885885
associated with the document, return <var>sequence</var> and terminate these steps.
886886
<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
887-
coordinates <var>x</var>,<var>y</var> even if nothing would be overlapping it, append the associated element to <var>sequence</var>.
887+
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
888+
<a href="#viewport">viewport</a>, append the associated element to <var>sequence</var>.
888889
<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>.
889890
<li><p>Return <var>sequence</var>.
890891
</ol>
@@ -900,13 +901,12 @@ <h2 id="extensions-to-the-document-interface"><span class="secno">6 </span>Exten
900901
(if any) return null.</li>
901902
<li><p>If at the coordinates <var>x</var>,<var>y</var>
902903
in the <a href="#viewport">viewport</a> no text insertion point indicator would have
903-
been inserted return null.</li>
904+
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>
904905
<li>
905906
<p>If at the coordinates <var>x</var>,<var>y</var>
906907
in the <a href="#viewport">viewport</a> a text insertion point indicator would have
907-
been inserted in a text entry widget which is also a replaced element
908-
return a <a href="#caret-position">caret position</a> with its properties set as
909-
follows:</p>
908+
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
909+
<a href="#viewport">viewport</a>, return a <a href="#caret-position">caret position</a> with its properties set as follows:</p>
910910
<dl>
911911
<dt><a href="#caret-node">caret node</a></dt>
912912
<dd><p>The node corresponding to the text entry widget.</dd>
@@ -921,8 +921,8 @@ <h2 id="extensions-to-the-document-interface"><span class="secno">6 </span>Exten
921921
<p>Otherwise, return a <a href="#caret-position">caret position</a> where the
922922
<a href="#caret-range">caret range</a> is a collapsed
923923
<code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#range">Range</a></code> object for the position
924-
where the text insertion point indicator would have been inserted and
925-
the other properties are set as follows:</p>
924+
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
925+
<a href="#viewport">viewport</a>, and the other properties are set as follows:</p>
926926
<dl>
927927
<dt><a href="#caret-node">caret node</a></dt>
928928
<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>

cssom-view/Overview.src.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ <h2>Extensions to the <code title>Document</code> Interface</h2>
829829
<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>
830830
associated with the document, return null and terminate these steps.
831831
<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>,
832-
return the associated element and terminate these steps.
832+
when applying the <span>transforms</span> that apply to the descendants of the <span>viewport</span>, return the associated element and terminate these steps.
833833
<li><p>If the document has a root element, return the root element and terminate these steps.
834834
<li><p>Return null.
835835
</ol>
@@ -845,7 +845,8 @@ <h2>Extensions to the <code title>Document</code> Interface</h2>
845845
<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>
846846
associated with the document, return <var>sequence</var> and terminate these steps.
847847
<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
848-
coordinates <var>x</var>,<var>y</var> even if nothing would be overlapping it, append the associated element to <var>sequence</var>.
848+
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
849+
<span>viewport</span>, append the associated element to <var>sequence</var>.
849850
<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>.
850851
<li><p>Return <var>sequence</var>.
851852
</ol>
@@ -861,13 +862,12 @@ <h2>Extensions to the <code title>Document</code> Interface</h2>
861862
(if any) return null.</p></li>
862863
<li><p>If at the coordinates <var>x</var>,<var>y</var>
863864
in the <span>viewport</span> no text insertion point indicator would have
864-
been inserted return null.</p></li>
865+
been inserted when applying the <span>transforms</span> that apply to the descendants of the <span>viewport</span>, return null.</p></li>
865866
<li>
866867
<p>If at the coordinates <var>x</var>,<var>y</var>
867868
in the <span>viewport</span> a text insertion point indicator would have
868-
been inserted in a text entry widget which is also a replaced element
869-
return a <span>caret position</span> with its properties set as
870-
follows:</p>
869+
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
870+
<span>viewport</span>, return a <span>caret position</span> with its properties set as follows:</p>
871871
<dl>
872872
<dt><span>caret node</span></dt>
873873
<dd><p>The node corresponding to the text entry widget.</p></dd>
@@ -882,8 +882,8 @@ <h2>Extensions to the <code title>Document</code> Interface</h2>
882882
<p>Otherwise, return a <span>caret position</span> where the
883883
<span>caret range</span> is a collapsed
884884
<code data-anolis-spec=dom>Range</code> object for the position
885-
where the text insertion point indicator would have been inserted and
886-
the other properties are set as follows:</p>
885+
where the text insertion point indicator would have been inserted when applying the <span>transforms</span> that apply to the descendants of the
886+
<span>viewport</span>, and the other properties are set as follows:</p>
887887
<dl>
888888
<dt><span>caret node</span></dt>
889889
<dd><p>The <code data-anolis-spec=dom title=dom-Range-startContainer>startContainer</code>

0 commit comments

Comments
 (0)