[csswg-drafts] [css-color] Should relative color syntax use color() function serialization? (#10641)

nt1m has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color] Should relative color syntax use color() function serialization? ==
I think it is a lot easier to serialize as is, than resolve to a `color()` function.

Especially when you start dealing with `currentColor`, system colors, nested functions or CSS variables. The only way to properly round-trip is to serialize as-is. I suggest making that the default and dropping the transformation to the `color()` function.

@svgeesus @mysteryDate @tiaanl Can we make that change?

WebKit has implemented this behavior and has yet to export the WPT: https://github.com/WebKit/WebKit/commit/c05a19a495bdffa90ca2c5707c651dee249b6870

cc @squelart @weinig 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10641 using your GitHub account


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

Received on Tuesday, 30 July 2024 04:17:06 UTC