Skip to content

Commit

Permalink
Update Dart Sass specs for saturate()
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jul 3, 2019
1 parent 8a96572 commit e65c52a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
3 changes: 1 addition & 2 deletions spec/core_functions/color/saturate.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ a {
---
:todo:
- sass/libsass#2897
- sass/dart-sass#699

<===> one_arg/named/input.scss
a {b: saturate($amount: 50%)}
Expand Down Expand Up @@ -145,7 +144,7 @@ Error: wrong number of arguments (3 for 2) for `saturate'
a {b: saturate(red)}

<===> error/one_arg/type/error
Error: $number: red is not a number.
Error: $amount: red is not a number.
,
1 | a {b: saturate(red)}
| ^^^^^^^^^^^^^
Expand Down
32 changes: 8 additions & 24 deletions spec/libsass-closed-issues/issue_151.hrx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<===> options.yml
---
:todo:
- sass/libsass#2895

<===> input.scss
div.colors {
background: grayscale(red);
Expand All @@ -19,32 +24,11 @@ div.numbers {
-webkit-filter: saturate(0.3);
-webkit-filter: invert(0.3);
}
<===> error-dart-sass
Error: $number: red is not a number.

<===> error
Error: $amount: red is not a number.
,
3 | background: saturate(red);
| ^^^^^^^^^^^^^
'
input.scss 3:15 root stylesheet

<===> output.css
div.colors {
background: gray;
background: saturate(red);
background: cyan;
background: 1;
color: #666666;
color: saturate(#369);
color: #1f66ad;
color: #cc9966;
color: 1;
}

div.numbers {
filter: grayscale(30%);
filter: saturate(30%);
filter: invert(30%);
-webkit-filter: grayscale(0.3);
-webkit-filter: saturate(0.3);
-webkit-filter: invert(0.3);
}

0 comments on commit e65c52a

Please sign in to comment.