Re: [csswg-drafts] CSS color serialization and <input type=color> with alpha/colorspace (#11008)

I think this likely could be defined in terms of non-modifying relative color calculation. That is,

for

lab(51.2345% -13.6271 16.2401)

With colorspace srgb selected, it gets serialized as if:

color(from lab(51.2345% -13.6271 16.2401) srgb r g b / alpha)

Which would compute to a color(srgb 0.41587 0.503670 0.36664).

This would work just as well with the value #11223344

color(from #11223344 srgb r g b / alpha)

This is fully defined and already in engines, so should be straight forward to implement as well. 

-- 
GitHub Notification of comment by weinig
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11008#issuecomment-2397449526 using your GitHub account


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

Received on Monday, 7 October 2024 17:01:06 UTC