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] Animations per-element #1433
I don't understand why you need animations on individual elements and having animations be per element sounds like it would create a multiplicative effect of the cost of highlights. The highlight affects the rendered style but it does not need to interact with the individual element styles, just the painting which it already does.
Activity
kbabbitt commentedon Nov 3, 2026
Thanks. That behavior is a consequence of the fact that highlights resolve styles per-element today. For example, if I have:
And apply this highlight over the entire paragraph:
The red text gets a red shadow and the blue text gets a blue shadow.
Now if I apply:
I need two different interpolations, one from red to green and one from blue to green.