Bug 236499 - [font-palette] CSSOM serialization of @font-palette-values canonicalises specified values
Summary: [font-palette] CSSOM serialization of @font-palette-values canonicalises spec...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-11 04:38 PST by Dominik Röttsches (drott)
Modified: 2022-02-14 19:53 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>