Re: [svgwg] ::selection and other highlights in SVG (#894)

WebKit 

https://searchfox.org/wubkat/rev/dd05eb230972a07f0240b959e6e22ca685ef3445/Source/WebCore/rendering/RenderElement.cpp#1906-1909
```cpp
Color RenderElement::selectionForegroundColor() const
{
    return selectionColor(CSSPropertyWebkitTextFillColor);
}
```

but somehow this doesn't seem to be applied to SVG. 


* So there might be a bug in Safari  @nikolaszimmermann @shallawa @nullhook and Blink here. (Chrome too)
*  On the other hand there is the lack of clarity if `color` vs `fill` should have any effect. 
* `fill` has no effect on selection in Firefox, even if `-wekit-text-fill-color` is defined as an alias of `fill` in the compat spec (and not `color`).




-- 
GitHub Notification of comment by karlcow
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/894#issuecomment-3384128137 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 9 October 2025 05:04:16 UTC