Skip to content

Commit

Permalink
[Shadow DOM] [Bug 27829] Make ShadowRoot have elementsFromPoints and …
Browse files Browse the repository at this point in the history
…caretPositionFromPoint.
  • Loading branch information
hayatoito committed Feb 2, 2015
1 parent 007ed3a commit 3df4888
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions spec/shadow/autolink-config.js
Expand Up @@ -152,6 +152,7 @@ var autolinkConfig = {
'http://www.w3.org/TR/cssom-view/': {
'offsetx': '#dom-mouseevent-offsetx',
'offsety': '#dom-mouseevent-offsety',
'caretPositionFromPoint': '#dom-document-caretpositionfrompoint',
'padding edge': '#padding-edge',
'viewport': '#viewport'
},
Expand Down
19 changes: 18 additions & 1 deletion spec/shadow/index.html
Expand Up @@ -1163,7 +1163,9 @@ <h3>The <code>ShadowRoot</code> interface</h3>
<dt>Element? elementFromPoint(double x, double y)</dt>
<dd>
<p>Returns an <a>element</a> at specified coordinates.</p>
<p class="note">Eventually, this needs to be part of CSSOM View Module specification [[!CSSOM-VIEW]]</p>
<p class="note">
Eventually, this needs to be part of CSSOM View Module specification [[!CSSOM-VIEW]]. See also <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27829">W3C bug 27829</a>.
</p>
<p>
When invoked, it <strong>must</strong> return result of running the following steps:
</p>
Expand All @@ -1176,6 +1178,21 @@ <h3>The <code>ShadowRoot</code> interface</h3>
</ol>
</dd>

<dt>sequence&lt;Element&gt; elementsFromPoint(double x, double y)</dt>
<dd>
<p class="note">
It could be defined in roughly the same way as <a>elementFromPoint</a>.
Eventually, this needs to be part of CSSOM View Module specification [[!CSSOM-VIEW]]. See also <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27829">W3C bug 27829</a>.
</p>
</dd>

<dt>CaretPosition? caretPositionFromPoint(double x, double y)</dt>
<dd>
<p class="note">
It could be defined in roughly the same way as <a>caretPositionFromPoint</a> [[!CSSOM-VIEW]].
Eventually, this needs to be part of CSSOM View Module specification [[!CSSOM-VIEW]]. See also <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27829">W3C bug 27829</a>.
</dd>

<dt>readonly attribute Element? activeElement</dt>
<dd>
<p>Represents the currently focused <a>element</a> in the <a>shadow tree</a>.</p>
Expand Down

0 comments on commit 3df4888

Please sign in to comment.