Skip to content

Commit fcda2a7

Browse files
Florian RivoalFlorian Rivoal
Florian Rivoal
authored and
Florian Rivoal
committed
[css-highlight] No restriction on static ranges accros containment boundaries
See #4598
1 parent 80aea8c commit fcda2a7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

css-highlight-api-1/Overview.bs

-17
Original file line numberDiff line numberDiff line change
@@ -570,23 +570,6 @@ Range Updating and Invalidation</h3>
570570
is not <a spec=dom for="StaticRange">valid</a>,
571571
the user agent must ignore that [=range=].
572572

573-
Issue(4598): The interaction of {{StaticRange}}s in a [=custom highlight=]
574-
and [[css-contain-2]]
575-
seems problematic:
576-
on a fully contained element,
577-
you should expect that DOM changes to descendants of that element
578-
will not cause invalidation and restyling/repainting
579-
of elements outside the contained one.
580-
However, if a static range has a boundary point inside the contained subtree
581-
and another boundary point outside of it,
582-
and the DOM in the contained subtree is changed
583-
so that the boundary point inside no longer points to a valid node,
584-
the whole range should be ignored,
585-
which would affect painting outside the contained subtree.
586-
Is this a weakness of [=style containment=],
587-
or of the invalidation logic above,
588-
or something else?
589-
590573
<h2 id=events>
591574
Event Handling</h2>
592575

0 commit comments

Comments
 (0)