Skip to content

Commit

Permalink
Allow unknown at-rules in keyframe blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed May 6, 2024
1 parent f801732 commit f249468
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions spec/css/keyframes.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -251,31 +251,30 @@ $a: b;

<===>
================================================================================
<===> error/in_keyframe_block/style_rule/input.scss
<===> in_keyframe_block/unknown_at_rule/input.scss
@keyframes a {
to {to {c: d}}
to {@b}
}

<===> error/in_keyframe_block/style_rule/error
Error: Style rules may not be used within keyframe blocks.
,
2 | to {to {c: d}}
| ^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===> in_keyframe_block/unknown_at_rule/output.css
@keyframes a {
to {
@b;
}
}

<===>
================================================================================
<===> error/in_keyframe_block/unknown_at_rule/input.scss
<===> error/in_keyframe_block/style_rule/input.scss
@keyframes a {
to {@b}
to {to {c: d}}
}

<===> error/in_keyframe_block/unknown_at_rule/error
Error: At-rules may not be used within keyframe blocks.
<===> error/in_keyframe_block/style_rule/error
Error: Style rules may not be used within keyframe blocks.
,
2 | to {@b}
| ^^
2 | to {to {c: d}}
| ^^^^^^^^^
'
input.scss 2:7 root stylesheet

Expand Down

0 comments on commit f249468

Please sign in to comment.