-
Notifications
You must be signed in to change notification settings - Fork 145
Fix/css4 rgb parsing #202
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
base: main
Are you sure you want to change the base?
Fix/css4 rgb parsing #202
Changes from 5 commits
5f7b6c8
4c432ca
6cd776b
e3a88f5
6934301
8f7d869
5609047
7a4641b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,8 @@ | |
background-color: rgba(var(--some-rg), 255, 0.1); | ||
background-color: hsla(var(--some-hsl), 0.1); | ||
} | ||
|
||
#css4-rgba { | ||
background-color: rgb(242 245 249 / 45%); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be cool to have an output format option to prefer this syntax over the other. AFAICT there are three boolean options that are all independent of one another: prefer-rgb-over-rgba / rgb-alpha-separator-use-slash / rgb-alpha-use-percentage. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would, though can (and should) be done as a separate PR. |
||
background-color: rgba(242 245 249); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rgb
has to be at the start, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though I prefer being explicit:
(the
rgba
case will be handled in theelse
branch anyway).