Skip to content

Commit 7c5a3f4

Browse files
committed
Cover type-of("red") case
This is a string, not a color. Related: sass/libsass#1522 sass/libsass#1525 sass/node-sass#1175
1 parent e777ea6 commit 7c5a3f4

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

spec/types/expected.compact.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/types/expected.compressed.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/types/expected.expanded.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
div {
22
color: color;
3+
color: string;
34
color: color;
45
color: number;
56
color: number;

spec/types/expected_output.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
div {
22
color: color;
3+
color: string;
34
color: color;
45
color: number;
56
color: number;

spec/types/input.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
div {
77
color: type-of(red);
8+
color: type-of("red");
89
color: type-of(#abc);
910
color: type-of(123);
1011
color: type-of(45px);
@@ -29,4 +30,4 @@ div {
2930
//foo + bar: 3px;
3031
}
3132

32-
//@import url(type-of(3+3));
33+
//@import url(type-of(3+3));

0 commit comments

Comments
 (0)