Skip to content

Commit c24beea

Browse files
authored
Merge pull request #1103 from sass/segfault-specs
Add specs for some segfaults in LibSass
2 parents 763fa40 + 5dc0b11 commit c24beea

File tree

16 files changed

+49
-27
lines changed

16 files changed

+49
-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)