Bug 265577 - rgb/hsl/hwb css color formats must support mixed component types
Summary: rgb/hsl/hwb css color formats must support mixed component types
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-11-30 06:12 PST by romain
Modified: 2024-08-08 12:10 PDT (History)
5 users (show)

See Also:


Attachments
Failing example (44.96 KB, image/png)
2023-11-30 06:12 PST, romain
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description romain 2023-11-30 06:12:34 PST
Created attachment 468820 [details]
Failing example

Safari Version       : Release 183 (Safari 17.4, WebKit 19618.1.5.2)
URLs (if applicable) :
- https://codepen.io/romainmenke/pen/wvNYKmR
- https://github.com/web-platform-tests/wpt/pull/43450
- https://drafts.csswg.org/css-color-4/
Other browsers tested:
  Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
     Chrome: FAIL
    Firefox: PASS (nightly)
       Edge: -

What steps will reproduce the problem?
(1) Visit https://codepen.io/romainmenke/pen/wvNYKmR 

What is the expected result?
You should see only squares with a background color

What happens instead?
You see some white squares for rgb/hsl/hwb


Attachment 1 shows the result in Safari
Visit the codepen in Firefox Nightly to compare
Comment 1 Radar WebKit Bug Importer 2023-12-07 06:13:29 PST
<rdar://problem/119313050>
Comment 2 romain 2024-01-08 11:00:18 PST
Both Firefox and Chrome have fixed all issues related to this in their respective nightly/beta versions.

The WPT tests have been merged.

This has been added to MDN browser compat data.
Comment 3 Karl Dubost 2024-01-09 04:25:44 PST
The code is in https://searchfox.org/wubkat/source/Source/WebCore/css/typedom/color/
Comment 4 Matthieu Dubet 2024-08-08 12:08:00 PDT
Thank you for opening this bug Romain.

We now support mixed component types in color function.

https://wpt.fyi/results/css/css-color/parsing/color-valid-rgb.html?label=experimental&label=master&aligned
Comment 5 romain 2024-08-08 12:10:40 PDT
Awesome! Thank you Matthieu (and other WebKit contributors)