Skip to content

Commit

Permalink
Allow 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 1325e93
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions spec/css/keyframes.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -251,45 +251,45 @@ $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
<===> in_keyframe_block/known_at_rule/input.scss
@keyframes a {
to {@b}
to {@media screen {b: c}}
}

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

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

<===> error/in_keyframe_block/known_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 {@media screen {b: c}}
| ^^^^^^^^^^^^^^^^^^^^
2 | to {to {c: d}}
| ^^^^^^^^^
'
input.scss 2:7 root stylesheet

0 comments on commit 1325e93

Please sign in to comment.