The IDL is using StaticRange: https://github.com/WebKit/WebKit/blob/main/Source/WebCore/Modules/highlight/Highlight.idl AbstractRange was implemented in https://trac.webkit.org/changeset/268648/webkit So we could now update the Highlight API to accept AbstractRange and match the spec: https://drafts.csswg.org/css-highlight-api-1/#highlight Otherwise most of the WPT tests that use Range() will fail in WebKit: https://wpt.fyi/results/css/css-highlight-api
<rdar://problem/82916119>
Created attachment 438953 [details] WIP patch
Looks like we haven't imported the css/css-highlight-api WPT tests.
*** This bug has been marked as a duplicate of bug 257520 ***