Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add specs for alpha units in rgba() and hsla() (#1291)
See sass/sass#1525
- Loading branch information
Showing
46 changed files
with
94 additions
and
611 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
spec/core_functions/color/hsla/alpha_percent/expected_output.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-percent { | ||
negative: rgba(0, 0, 0, 0); | ||
min: rgba(0, 0, 0, 0); | ||
positive: rgba(0, 0, 0, 0.456); | ||
max: black; | ||
above-max: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-percent { | ||
negative: hsla(0, 0, 0, -10%); | ||
min: hsla(0, 0, 0, 0%); | ||
positive: hsla(0, 0, 0, 45.6%); | ||
max: hsla(0, 0, 0, 100%); | ||
above-max: hsla(0, 0, 0, 250%); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:start_version: '3.7' | ||
:todo: | ||
- libsass # sass/libsass#2719 |
7 changes: 7 additions & 0 deletions
7
spec/core_functions/color/hsla/alpha_unitless/expected_output.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-unitless { | ||
negative: rgba(0, 0, 0, 0); | ||
min: rgba(0, 0, 0, 0); | ||
positive: rgba(0, 0, 0, 0.456); | ||
max: black; | ||
above-max: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-unitless { | ||
negative: hsla(0, 0, 0, -10); | ||
min: hsla(0, 0, 0, 0); | ||
positive: hsla(0, 0, 0, 0.456); | ||
max: hsla(0, 0, 0, 1); | ||
above-max: hsla(0, 0, 0, 250); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Error: $alpha: Expected 0.5px to have no units or "%". | ||
a: hsla(0, 0, 0, 0.5px); | ||
^^^^^^^^^^^^^^^^^^^^ | ||
/sass/spec/core_functions/color/hsla/error/alpha_unit/input.scss 2:6 root stylesheet |
3 changes: 3 additions & 0 deletions
3
spec/core_functions/color/hsla/error/alpha_unit/error-ruby-sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Error: $alpha: Expected 0.5px to have no units or "%" for `hsla' | ||
on line 2 of /sass/spec/core_functions/color/hsla/error/alpha_unit/input.scss | ||
Use --trace for backtrace. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.alpha-unit { | ||
a: hsla(0, 0, 0, 0.5px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:start_version: '3.7' | ||
:todo: | ||
- libsass # sass/libsass#2719 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
65 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
spec/core_functions/color/rgba/alpha_percent/expected_output.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-percent { | ||
negative: rgba(0, 0, 0, 0); | ||
min: rgba(0, 0, 0, 0); | ||
positive: rgba(0, 0, 0, 0.456); | ||
max: black; | ||
above-max: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-percent { | ||
negative: rgba(0, 0, 0, -10%); | ||
min: rgba(0, 0, 0, 0%); | ||
positive: rgba(0, 0, 0, 45.6%); | ||
max: rgba(0, 0, 0, 100%); | ||
above-max: rgba(0, 0, 0, 250%); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:start_version: '3.7' | ||
:todo: | ||
- libsass # sass/libsass#2719 |
7 changes: 7 additions & 0 deletions
7
spec/core_functions/color/rgba/alpha_unitless/expected_output.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-unitless { | ||
negative: rgba(0, 0, 0, 0); | ||
min: rgba(0, 0, 0, 0); | ||
positive: rgba(0, 0, 0, 0.456); | ||
max: black; | ||
above-max: black; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.alpha-unitless { | ||
negative: rgba(0, 0, 0, -10); | ||
min: rgba(0, 0, 0, 0); | ||
positive: rgba(0, 0, 0, 0.456); | ||
max: rgba(0, 0, 0, 1); | ||
above-max: rgba(0, 0, 0, 250); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Error: $alpha: Expected 0.5px to have no units or "%". | ||
a: rgba(0, 0, 0, 0.5px); | ||
^^^^^^^^^^^^^^^^^^^^ | ||
/sass/spec/core_functions/color/rgba/error/alpha_unit/input.scss 2:6 root stylesheet |
3 changes: 3 additions & 0 deletions
3
spec/core_functions/color/rgba/error/alpha_unit/error-ruby-sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Error: $alpha: Expected 0.5px to have no units or "%" for `rgba' | ||
on line 2 of /sass/spec/core_functions/color/rgba/error/alpha_unit/input.scss | ||
Use --trace for backtrace. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.alpha-unit { | ||
a: rgba(0, 0, 0, 0.5px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
:start_version: '3.7' | ||
:todo: | ||
- libsass # sass/libsass#2719 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
65 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.