Skip to content
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

feat(color): suport color space syntax #932

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fuchunhui
Copy link

new feature for color-syntax

For easy reference in other specifications, opaque black is defined as the color rgb(0 0 0 / 100%); transparent black is the same color, but fully transparent—i.e. rgb(0 0 0 / 0%).
All of the syntactic forms defined in this specification use space, not comma, to separate the color components. They also use a solidus ("/") to separate an optional alpha term from the color components.

example:

rgb(254 134 22)
rgb(254 134 22 / 20%)
rgba(154 234 222 / 20%)
hsl(120 75% 50%)
hsl(120 75% 50% / 0.25)
hsla(120.0 75% 50% / 25%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant