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
{{ message }}
Repository navigation
[Custom Highlight API Extensions] Fire events on originating element rather than make Highlight an EventTarget? #1430
Most of the use cases we were solving for then were instead taken care of with highlightsFromPoint. Seems this is a good reason to try again.
As an alternative though, would it be workable to have the animation events fire against the originating element(s) instead? That could avoid some of the interesting questions that we ran into when considering how event path construction and bubbling should work when highlights are in the event path.
There is overlap with CSSPseudoElement here. Right now events trigger on the ultimate originating element, and there is a pseudoTarget property on the Event to get the pseudo (if any)
Activity
bramus commentedon Oct 24, 2026
There is overlap with CSSPseudoElement here. Right now events trigger on the ultimate originating element, and there is a pseudoTarget property on the Event to get the pseudo (if any)