You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-color-5] Serialization of rgb() and hsl() origin colors conflicts with WPT #14951
The spec says to keep the function (rgb or hsl), with space-separated components as specified, percentages staying percentages, and no clamping. This came from #10328.
The test expects the origin color to be resolved to sRGB and serialized as for a top-level color:
Origin color as authored
Spec
WPT expects
rgb(20%, 40%, 60%, 80%)
rgb(20% 40% 60% / 80%)
rgba(51, 102, 153, 0.8)
hsl(120deg 20% 50% / .5)
hsl(120deg 20% 50% / 0.5)
rgba(102, 153, 102, 0.5)
rgb(20% none 60%)
rgb(20% none 60%)
color(srgb 0.2 none 0.6)
For example, for rgb(from rgb(20% none 60%) r g b) the test expects rgb(from color(srgb 0.2 none 0.6) r g b).
hex color origin colors, which the spec now serializes as their declared value, giving the comma-separated rgb() form, unlike an authored rgb() origin color
Activity