The CSS 5 color mutation functions (color-mix(), color-contrast(), relative color syntax) don't work with currentcolor or system-colors as one of their origin colors. This is due to the parser not being the right time to resolve those values, so some intermediate type is going to be needed to late resolve these things (perhaps time for a CSSColor object that can be resolved into a Color when appropriate).
<rdar://problem/87050763>
Pull request: https://github.com/WebKit/WebKit/pull/4068
I’m having trouble getting my work in progress pushed to GitHub, so I am going to attach a patch here. Matthieu mentioned he wanted to see my cut at this.
Created attachment 462189 [details] Darin’s cut at part of the work for reference
Committed 255095@main (b6c018250b04): <https://commits.webkit.org/255095@main> Reviewed commits have been landed. Closing PR #4068 and removing active labels.