Skip to content

Commit

Permalink
Merge pull request #46 from e-bigmoon/basic_lucius_test_cases_at-rule…
Browse files Browse the repository at this point in the history
…s_keyframes

Add test case for `@keyframes`
  • Loading branch information
waddlaw authored Jul 31, 2021
2 parents 38f523b + 2a9a930 commit 6c182af
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

### Added

- Add lucius test cases for `@keyframes` [#46](https://github.com/e-bigmoon/vscode-language-yesod/pull/46) @isao-takejib
- Add lucius test cases for `@font-face` [#45](https://github.com/e-bigmoon/vscode-language-yesod/pull/45) @isao-takejib
- Add lucius test cases for `@page` [#44](https://github.com/e-bigmoon/vscode-language-yesod/pull/44) @isao-takejib
- Add lucius test cases for at-rule (`@import`, `@namespace`, `@media`) [#43](https://github.com/e-bigmoon/vscode-language-yesod/pull/43) @isao-takejib
Expand Down
219 changes: 219 additions & 0 deletions test/tests/lucius/at-rule.lucius
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,222 @@
// ^ meta.property-list.css punctuation.terminator.rule.css
}
// <- meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

@keyframes slide-right {
// <- meta.at-rule.keyframes.header.css keyword.control.at-rule.keyframes.css punctuation.definition.keyword.css
// <~--------- meta.at-rule.keyframes.header.css keyword.control.at-rule.keyframes.css
// <~~~~~~~~~~~----------- meta.at-rule.keyframes.header.css variable.parameter.keyframe-list.css
// <~~~~~~~~~~~~~~~~~~~~~~~- meta.at-rule.keyframes.body.css punctuation.section.keyframes.begin.bracket.curly.css
from {
// ^^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
margin-left: 0px;
// ^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

50% {
// ^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
margin-left: 110px;
// ^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
opacity: 1;
// ^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

50% {
// ^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
opacity: 0.9;
// ^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css



to {
// ^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
margin-left: 200px;
// ^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css
}
// <- meta.at-rule.keyframes.body.css punctuation.section.keyframes.end.bracket.curly.css

@keyframes bounce {
// <- meta.at-rule.keyframes.header.css keyword.control.at-rule.keyframes.css punctuation.definition.keyword.css
// <~--------- meta.at-rule.keyframes.header.css keyword.control.at-rule.keyframes.css
// <~~~~~~~~~~~------ meta.at-rule.keyframes.header.css variable.parameter.keyframe-list.css
// <~~~~~~~~~~~~~~~~~~- meta.at-rule.keyframes.body.css punctuation.section.keyframes.begin.bracket.curly.css
from {
// ^^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
top: 100px;
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
animation-timing-function: ease-out;
// ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css support.constant.property-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

25% {
// ^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
top: 50px;
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
animation-timing-function: ease-in;
// ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css support.constant.property-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

50% {
// ^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
top: 100px;
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
animation-timing-function: ease-out;
// ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css support.constant.property-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

75% {
// ^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
top: 75px;
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
animation-timing-function: ease-in;
// ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css support.constant.property-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

to {
// ^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
top: 100px;
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.px.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css
}
// <- meta.at-rule.keyframes.body.css punctuation.section.keyframes.end.bracket.curly.css

.slidein {
// <- meta.selector.css entity.other.attribute-name.class.css punctuation.definition.entity.css
// <~------- meta.selector.css entity.other.attribute-name.class.css
// <~~~~~~~~~- meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
animation-duration: 3s;
// ^^^^^^^^^^^^^^^^^^ meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.property-list.css punctuation.separator.key-value.css
// ^ meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.s.css
// ^ meta.property-list.css punctuation.terminator.rule.css
animation-name: slidein;
// ^^^^^^^^^^^^^^ meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.property-list.css punctuation.separator.key-value.css
// ^^^^^^^ meta.property-list.css meta.property-value.css
// ^ meta.property-list.css punctuation.terminator.rule.css
animation-iteration-count: 3;
// ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.property-list.css punctuation.separator.key-value.css
// ^ meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.property-list.css punctuation.terminator.rule.css
animation-direction: alternate;
// ^^^^^^^^^^^^^^^^^^^ meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.property-list.css punctuation.separator.key-value.css
// ^^^^^^^^^ meta.property-list.css meta.property-value.css support.constant.property-value.css
// ^ meta.property-list.css punctuation.terminator.rule.css
}
// <- meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

@keyframes slidein {
// <- meta.at-rule.keyframes.header.css keyword.control.at-rule.keyframes.css punctuation.definition.keyword.css
// <~--------- meta.at-rule.keyframes.header.css keyword.control.at-rule.keyframes.css
// <~~~~~~~~~~~------- meta.at-rule.keyframes.header.css variable.parameter.keyframe-list.css
// <~~~~~~~~~~~~~~~~~~~- meta.at-rule.keyframes.body.css punctuation.section.keyframes.begin.bracket.curly.css
from {
// ^^^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
margin-left:100%;
// ^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
width:300%;
// ^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css

to {
// ^^ meta.at-rule.keyframes.body.css entity.other.keyframe-offset.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.begin.bracket.curly.css
margin-left:0%;
// ^^^^^^^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
width:100%;
// ^^^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-name.css support.type.property-name.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.separator.key-value.css
// ^^^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css meta.property-value.css constant.numeric.css keyword.other.unit.percentage.css
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.terminator.rule.css
}
// ^ meta.at-rule.keyframes.body.css meta.property-list.css punctuation.section.property-list.end.bracket.curly.css
}
// <- meta.at-rule.keyframes.body.css punctuation.section.keyframes.end.bracket.curly.css

0 comments on commit 6c182af

Please sign in to comment.