-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test case for css keyframes
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.../@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-keyframes/actual.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.fix-notify_toast_animation { | ||
animation-name: fadeIn; | ||
animation-duration: 0.4s; | ||
} | ||
|
||
@keyframes fadeIn { | ||
0% { | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-keyframes/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"disableSyntheticShadowSupport": true | ||
} |
10 changes: 10 additions & 0 deletions
10
...@lwc/style-compiler/src/__tests__/fixtures/disable-synthetic-shadow-keyframes/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function stylesheet() { | ||
var token; | ||
var useActualHostSelector = true; | ||
var useNativeDirPseudoclass = true; | ||
var shadowSelector = token ? ("[" + token + "]") : ""; | ||
var hostSelector = token ? ("[" + token + "-host]") : ""; | ||
return ".fix-notify_toast_animation" + shadowSelector + " {animation-name: fadeIn" + (shadowSelector ? ('-' + shadowSelector.substring(1, shadowSelector.length - 1)) : '') + ";animation-duration: 0.4s;}@keyframes fadeIn" + (shadowSelector ? ('-' + shadowSelector.substring(1, shadowSelector.length - 1)) : '') + " {0% {opacity: 0;}100% {opacity: 1;}}"; | ||
/*LWC compiler vX.X.X*/ | ||
} | ||
export default [stylesheet]; |