-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CSS Color Module Level 5 (color-mix(), color-contrast(), Relative color) #5405
Comments
Two are coming as experimental with Safari TP 122: |
|
I hadn't listed relative color syntax aka. "CSS Relative Colors", added now. |
Support bugs, stolen from https://www.bram.us/2021/12/27/css-in-2022/#the-hotlist--color-functions: |
With The spec also defines |
Check!
Good to know!
|
Please give us the ability to be able to set the opacity of a custom property that is set to a hex color code. This is propably the most common use case for color adjustments. 188K designers have sought for a fix for this on stackoverflow: :root {
--color: #f0f0f0;
}
#element {
background: (somehow use var(--color) at some opacity);
} |
@mangelozzi I think you should voice this pain point at https://github.com/w3c/csswg-drafts/labels/css-color-5 |
Links for relative colors:
|
Links to issues for
|
https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes:
|
Let's get these pages on Can I Use! |
Safari 16.2 added support for |
Safari 16.4 beta has support for Relative Color Syntax. |
yes, please add relative color syntax to caniuse! i've been checking for it periodically and end up slapping my forehead each time thinking i wasn't putting in the right incantations into the search box, to then finally realize it's not in there at all yet. |
Safari 16.4 shipped with support for relative color at the end of March |
Someone needs to make three pull-requests. What is the current state of all the other browser support? Does Chrome/Edge/other Chromium mobile browsers or Firefox support any of these three new features? Even in partial experimental state? Can anyone find issues for Chromium and Gecko so we can link to them? Are there any MDN pages yet? |
@jensimmons To my understanding the only thing missing from caniuse covered by this issue is relative color, with the rest being available via MDN:
Issues for relative color (comment above):
|
Relative color syntax now available at https://caniuse.com/css-relative-colors Closing this ticket now as all appear to be accounted for now, thanks all for helping to provide info. :) |
"Removed color-adjust(), keeping relative color syntax"color-adjust()
color-mix()
=> https://caniuse.com/mdn-css_types_color_color-mixcolor-contrast()
=> https://caniuse.com/mdn-css_types_color_color-contrastcolor-mod
Add color-mod() | color() function - CSS Color Module Level 4 #2864color-adjust()
function is not to be confused with the property of the same name https://caniuse.com/#search=color-adjustThe text was updated successfully, but these errors were encountered: