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
Copy file name to clipboardExpand all lines: css-highlight-api-1/Overview.bs
+7-3
Original file line number
Diff line number
Diff line change
@@ -668,15 +668,19 @@ method must return the result of running these steps:
668
668
* <var>x</var> is greater than the <a>viewport</a> width excluding the size of a rendered scroll bar (if any)
669
669
* <var>y</var> is greater than the <a>viewport</a> height excluding the size of a rendered scroll bar (if any)
670
670
1. Otherwise, return a [=sequence=] of [=custom highlights=] given by ordering the highlights contained in this {{HighlightRegistry}} in descending order of [=priority=],
671
-
excluding the highlights without at least one [=range=]<var>range</var> that satisfies the following constraints:
672
-
1. The coordinates <var>x</var>,<var>y</var> fall inside at least one of the {{DOMRect}}s returned by calling {{Range/getClientRects()}} on <var>range</var>.
671
+
including only those highlights that contain at least one {{AbstractRange}}<var>abstractRange</var> that satisfies the following:
672
+
673
+
* Let <var>range</var> be a {{Range}} object whose [=start node=] and [=end node=] are set to <var>abstractRange</var>'s [=start node=] and [=end node=] respectively,
674
+
and [=start offset=] and [=end offset=] are set to <var>abstractRange</var>'s [=start offset=] and [=end offset=] respectively.
675
+
676
+
* The coordinates <var>x</var>,<var>y</var> fall inside at least one of the {{DOMRect}}s returned by calling {{Range/getClientRects()}} on <var>range</var>.
673
677
674
678
Note: The specifics of hit testing are out of scope of this
675
679
specification and therefore the exact details of
676
680
{{highlightsFromPoint()}} are therefore too. Hit testing
677
681
will hopefully be defined in a future revision of CSS or HTML.
678
682
679
-
1. The <var>range</var>'s {{commonAncestorContainer}} is not in a [=shadow tree=] or is in a [=shadow tree=] whose
683
+
* The <var>range</var>'s {{commonAncestorContainer}} is not in a [=shadow tree=] or is in a [=shadow tree=] whose
680
684
[=shadow root=] is [=list/contains|contained by=] by <var>options</var>.<var>shadowRoots</var>.
0 commit comments