Skip to content

Commit 5dc0b11

Browse files
committed
Combine and expand specs for feature query syntax
These were spread over a couple different places, and didn't cover some error conditions.
1 parent 393aefd commit 5dc0b11

File tree

11 files changed

+38
-27
lines changed

11 files changed

+38
-27
lines changed

spec/libsass-closed-issues/issue_261/input.scss

Lines changed: 0 additions & 21 deletions
This file was deleted.

spec/libsass-closed-issues/issue_617/input.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@supports (foo: bar) {
2+
div {
3+
foo: bar;
4+
}
5+
}
6+
@supports not (foo: bar) {
7+
div {
8+
bar: baz;
9+
}
10+
}
11+
@supports (foo: bar) and (bar: baz) {
12+
div {
13+
foo: bar;
14+
bar: baz;
15+
}
16+
}
17+
@supports (foo: bar) or (bar: baz) {
18+
div {
19+
bar: baz;
20+
}
21+
}
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.foo {
2+
display: block;
3+
@supports (display: flex) {
4+
display: flex;
5+
}
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Error: Invalid CSS after "@supports ": expected @supports condition (e.g. (display: flexbox)), was "{"
2+
on line 1 of /sass/spec/scss/feature-queries/without-query/input.scss
3+
Use --trace for backtrace.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Error: Expected "not".
2+
@supports {
3+
^
4+
/sass/spec/scss/feature-queries/without-query/input.scss 1:11

spec/scss/feature-queries/without-query/expected_output.css

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@supports {
2+
3+
}

0 commit comments

Comments
 (0)