Bug 236499

Summary: [font-palette] CSSOM serialization of @font-palette-values canonicalises specified values
Product: WebKit Reporter: Dominik Röttsches (drott) <d-r>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Dominik Röttsches (drott) 2022-02-11 04:38:52 PST
Safari TP passes
font-palette-values-valid.html
which expects canonicalized serializations of the specified color values, e.g. "green" becoming "rgb(0, 127, 0)".

In
https://chromium-review.googlesource.com/c/chromium/src/+/3447227
I am changing the test to allow as-specified values to appear, and I think that's correct. According to CSSOM, WebKit's implementation should serialize the color-overrides as specified, not canonicalized to rgb(), rgba() values.

I discussed with Rune, futhark@chromium.org, and we believe 
https://www.w3.org/TR/cssom-1/#serialize-a-css-component-value would be reasonable to look at here, which states that in CSSOM the serialization of a component values should try to serialize the color values as specified.
Comment 1 Dominik Röttsches (drott) 2022-02-11 06:42:23 PST
WPT change merged in https://github.com/web-platform-tests/wpt/pull/32748/files
Comment 2 Radar WebKit Bug Importer 2022-02-14 19:53:46 PST
<rdar://problem/88943466>