-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
color is legacy #4
Changes from 2 commits
17e8664
e59e75e
af984a0
7f6b962
1f44744
f54710c
1d041c1
7ddb751
cb479d5
1ae8fbb
a4fa86a
ad0145c
017ff98
c2cf2ed
6a63b6f
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 | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,182 @@ | ||||||
<===> options.yml | ||||||
--- | ||||||
:ignore_for: | ||||||
- libsass | ||||||
|
||||||
<===> | ||||||
=================================================================== | ||||||
<===> rgb/input.scss | ||||||
SondraE marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(rgb(0 255 0))} | ||||||
|
||||||
<===> rgb/output.css | ||||||
a { | ||||||
b: true; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> hwb/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(hwb(0, 50%, 0%))} | ||||||
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.
Suggested change
I believe Sass will support with or without commas |
||||||
|
||||||
<===> hwb/output.css | ||||||
a { | ||||||
b: true; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> hsl/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(hsl(110, 31%, 32%))} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> hsl/output.css | ||||||
a { | ||||||
b: true; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> srgb/input.scss | ||||||
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. At some point we'll have to decide which of this need to be included to feel like we've covered enough cases. We probably won't need to test all of the color types. |
||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(srgb(115, 20, 210))} | ||||||
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. @mirisuzanne @dvdherron I've not really come across a lot with srgb used in a css notation like this before, but would it be more like:
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. https://css.oddbird.net/sass/color-spaces/proposal/#predefined-color-spaces
|
||||||
|
||||||
<===> srgb/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> srgb-linear/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(?????)} | ||||||
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. @mirisuzanne @dvdherron @SondraE and same for here? a {b: color.is-legacy(color(srgb-linear 0.45098 0.07843 0.823530))} |
||||||
|
||||||
<===> srgb-linear/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> display-p3/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy((display-p3 0.515 0.35 0.3 / 1))} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> display-p3/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> a98-rgb/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(?????)} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> a98-rgb/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> prophoto-rgb/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(?????)} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> prophoto-rgb/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> rec2020/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(?????)} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> rec2020/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> xyz/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(xyz(0.0426 0.0442 0.0364))} | ||||||
|
||||||
<===> xyz/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> xyz-d50/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(?????)} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> xyz-d50/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> xyz-d65/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(?????)} | ||||||
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.
Suggested change
|
||||||
|
||||||
<===> xyz-d65/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> lab/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(lab(5 110 115))} | ||||||
|
||||||
<===> lab/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> lch/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(lch(90.6 52.8 197))} | ||||||
|
||||||
<===> lch/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> oklab/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(oklab(0.44027, 0.08818, -0.13386))} | ||||||
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.
Suggested change
I believe the commas would be an error for oklab, oklch,lab, and lch |
||||||
|
||||||
<===> oklab/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
================================================================================ | ||||||
<===> oklch/input.scss | ||||||
@use "sass:color"; | ||||||
a {b: color.is-legacy(oklch(70% 0.1 200))} | ||||||
|
||||||
<===> oklch/output.css | ||||||
a { | ||||||
b: false; | ||||||
} | ||||||
|
||||||
<===> | ||||||
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. @SondraE I think this is the beginning of a new file so line 182 here can be removed (unless you are adding more of course). |
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.
@SondraE I don't know this for sure, but I am guessing the filename
is_legacy.hrx
would be preferred.