Skip to content

Commit 82125e0

Browse files
committed
Add an error tests for plain-CSS mixins
1 parent 690f608 commit 82125e0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/css/mixin.hrx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<===> error/css/mixin/input.scss
2+
@mixin --a {}
3+
4+
<===> error/css/mixin/error
5+
Error: Sass @mixin names beginning with -- are forbidden for forward-compatibility with plain CSS mixins.
6+
7+
For details, see https://sass-lang.com/d/css-function-mixin
8+
,
9+
1 | @mixin --a {}
10+
| ^^^
11+
'
12+
input.scss 1:8 root stylesheet

0 commit comments

Comments
 (0)