Skip to content
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

Add specs for empty custom properties #1259

Merged
merged 1 commit into from
Jun 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions spec/css/custom_properties/error/empty/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Error: Expected token.
--property:;
^
/sass/spec/css/custom_properties/error/empty/input.scss 3:14 root stylesheet
Empty file.
4 changes: 4 additions & 0 deletions spec/css/custom_properties/error/empty/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// CSS requires at least one token in a custom property.
.empty {
--property:;
}
4 changes: 4 additions & 0 deletions spec/css/custom_properties/error/empty/options.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
:todo:
- ruby-sass # sass/ruby-sass#63
- libsass # sass/ruby-sass#63
1 change: 1 addition & 0 deletions spec/css/custom_properties/error/empty/status
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
4 changes: 4 additions & 0 deletions spec/css/custom_properties/error/empty_interpolation/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Error: Custom property values may not be empty.
--property:#{""};
^^^^^
/sass/spec/css/custom_properties/error/empty_interpolation/input.scss 3:14 root stylesheet
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// CSS requires at least one token in a custom property.
.empty {
--property:#{""};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
:todo:
- ruby-sass # sass/ruby-sass#63
- libsass # sass/ruby-sass#63
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Error: Nothing may be indented beneath a custom property.
bar: baz
baz: qux
^
spec/css/custom_properties/error/no_nesting/input.sass 3:5 root stylesheet
4 changes: 2 additions & 2 deletions spec/css/custom_properties/error/no_nesting/input.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.no-nesting
--foo:
bar: baz
--foo: bar
baz: qux