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
Support all <angle> units in color functions #2904
Labels
CSS compatibility
Support the CSS spec
enhancement
New feature or request
planned
We would like to add this feature at some point
requires deprecation
Blocked on a deprecation cycle
Comments
nex3
added
enhancement
New feature or request
CSS compatibility
Support the CSS spec
planned
We would like to add this feature at some point
requires deprecation
Blocked on a deprecation cycle
labels
Sep 16, 2020
nex3
added a commit
that referenced
this issue
Nov 17, 2020
This lays some groundwork that will be useful for #2904.
nex3
added a commit
that referenced
this issue
Nov 17, 2020
This lays some groundwork that will be useful for #2904. Co-authored-by: Awjin Ahn <awjin@google.com>
nex3
added a commit
that referenced
this issue
Nov 17, 2020
nex3
added a commit
that referenced
this issue
Nov 18, 2020
The proposal has landed, giving it two weeks for public comment. |
nex3
added a commit
that referenced
this issue
Dec 17, 2020
nex3
added a commit
that referenced
this issue
Dec 17, 2020
nex3
added a commit
that referenced
this issue
Dec 18, 2020
nex3
added a commit
that referenced
this issue
Dec 18, 2020
nex3
added a commit
that referenced
this issue
Dec 21, 2020
This was referenced Dec 29, 2020
nex3
added a commit
to sass/sass-site
that referenced
this issue
Dec 29, 2020
Partially addresses #511 See sass/sass#2904
nex3
added a commit
to sass/sass-site
that referenced
this issue
Dec 29, 2020
Partially addresses #511 See sass/sass#2904
mirisuzanne
pushed a commit
that referenced
this issue
Feb 10, 2022
This lays some groundwork that will be useful for #2904. Co-authored-by: Awjin Ahn <awjin@google.com>
mirisuzanne
pushed a commit
that referenced
this issue
Feb 10, 2022
mirisuzanne
pushed a commit
that referenced
this issue
Feb 10, 2022
nex3
added a commit
to sass/sass-spec
that referenced
this issue
Oct 28, 2022
nex3
added a commit
to sass/dart-sass
that referenced
this issue
Oct 28, 2022
nex3
added a commit
to sass/sass-site
that referenced
this issue
Oct 28, 2022
This merges the color-units and random-with-units deprecation pages into a single shared function-units page, updates the color-units deprecations to reflect that Phase 2 has been enacted, and adds new function unit deprecations. See #511 See sass/sass#2904 See #662 See sass/sass#3374
nex3
added a commit
to sass/sass-spec
that referenced
this issue
Oct 28, 2022
nex3
added a commit
to sass/dart-sass
that referenced
this issue
Oct 28, 2022
nex3
added a commit
to sass/sass-site
that referenced
this issue
Oct 28, 2022
This merges the color-units and random-with-units deprecation pages into a single shared function-units page, updates the color-units deprecations to reflect that Phase 2 has been enacted, and adds new function unit deprecations. See #511 See sass/sass#2904 See #662 See sass/sass#3374
nex3
added a commit
to sass/sass-spec
that referenced
this issue
Oct 28, 2022
nex3
added a commit
to sass/dart-sass
that referenced
this issue
Oct 28, 2022
nex3
added a commit
to sass/sass-site
that referenced
this issue
Oct 28, 2022
This merges the color-units and random-with-units deprecation pages into a single shared function-units page, updates the color-units deprecations to reflect that Phase 2 has been enacted, and adds new function unit deprecations. See #511 See sass/sass#2904 See #662 See sass/sass#3374
This is now waiting on Dart Sass 2.0.0 |
asaf400
pushed a commit
to asaf400/ass-site
that referenced
this issue
Apr 18, 2024
Partially addresses sass#511 See sass/sass#2904
asaf400
pushed a commit
to asaf400/ass-site
that referenced
this issue
Apr 18, 2024
This merges the color-units and random-with-units deprecation pages into a single shared function-units page, updates the color-units deprecations to reflect that Phase 2 has been enacted, and adds new function unit deprecations. See sass#511 See sass/sass#2904 See sass#662 See sass/sass#3374
asaf400
pushed a commit
to asaf400/ass-site
that referenced
this issue
Apr 18, 2024
Partially addresses sass#511 See sass/sass#2904
asaf400
pushed a commit
to asaf400/ass-site
that referenced
this issue
Apr 18, 2024
This merges the color-units and random-with-units deprecation pages into a single shared function-units page, updates the color-units deprecations to reflect that Phase 2 has been enacted, and adds new function unit deprecations. See sass#511 See sass/sass#2904 See sass#662 See sass/sass#3374
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CSS compatibility
Support the CSS spec
enhancement
New feature or request
planned
We would like to add this feature at some point
requires deprecation
Blocked on a deprecation cycle
Phase 1
Phase 2
Phase 3
Currently, Sass's color functions (including both the existing functions and the functions added by #2835) only support
deg
as a hue unit. CSS specifies, and browsers support, a wider variety of units, includinggrad
,rad
, andturn
. We should support all these units, internally converting them todeg
.Because
hsl()
's and*-color()
's$hue
arguments currently accept any unit, not just a unitless number ordeg
, this will require an intermediate deprecation step where we forbid units other thandeg
for hue values. As part of this, we can also tighten up the unit requirements for$saturation
and$lightness
to require either no unit or%
.The text was updated successfully, but these errors were encountered: