CSS Color 4 RGB/RGBA syntax - Whitespace syntax and RGB alpha value
See original GitHub issuePlease read and fill out this template by replacing the instructions with appropriate information. If the template is not followed, the issue will be marked Invalid
and closed.
Before submitting an issue search past issues and read the area of the documentation related to your specific question, issue, or request.
Description
… what is the issue / request ? Add support for CSS Color 4 RGB/RGBA syntax
Vague issues/requests will be marked with
Insufficient Details
for about a week. If not corrected, they will be markedStale
for about a week and then closed.
For feature requests or proposals: CSS Color 4 RGB/RGBA syntax
Suggestion to support
/* Functional syntax with alpha value */ rgb(255, 0, 153, 1) rgb(255, 0, 153, 100%)
/* Whitespace syntax */ rgb(255 0 153 / 1) rgb(255 0 153 / 100%)
/* Functional syntax */ rgba(51, 170, 51, 1) rgba(51, 170, 51, 100%)
/* Whitespace syntax */
rgba(51 170 51 / 0.4)
rgba(51 170 51 / 40%)
😀 https://www.chromestatus.com/feature/5124205561511936
- Clearly define in as much detail as possible how you imagine the feature to work.
- Examples are also appreciated.
For bugs and support questions:
- Describe the bug/question in as much detail as possible to make it clear what is wrong or what you do not > understand.
- Provide errors from console (if available).
- Pictures or screencasts can also be used to clarify what the issue is or what the question is.
- Provide links to 3rd party syntax highlighting package you are using if applicable.
Support Info
…
Run the following command from the menu:
Preferences->Package Settings->ColorHelper->Support Info
. Post the result here.
Steps to Reproduce Issue
- First step…
- Second step…
- Third step…
Provide steps to reproduce the issue. Pictures are fine, but also provide code/text I can copy and paste in order to reproduce. Omit for feature requests and feature proposals.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (10 by maintainers)
Top GitHub Comments
I know I still haven’t pushed out a release in like a month, but just an FYI, there should hopefully be a beta out sometime soon-ish (hoping within the week). There were many areas that were re-written and such. The aim was to allow more flexible input and output, more configurability, and improve color scanning behavior.
Currently, all this work is on the
feature/next
branch info here #159. We have a new color library that ColorHelper uses and can handle not just sRGB, HSL, HWB, but it can handle LCH, LAB, and others.Because of this, we’ve reworked color previews as now we have to handle colors that are out of gamut, so some simple gamut mapping is now available or the option to not show the color at all. We’ve added some new color tools as well. Anyways, a lot of work went into this next release which is why the holdup.
Getting close. There’s a number of places in which we need to make some adjustments, but detection seems to be working: