@@ -57,6 +57,32 @@ public void setCssText() throws Exception {
57
57
58
58
}
59
59
60
+ /**
61
+ * @throws Exception if any error occurs
62
+ */
63
+ @ Test
64
+ public void keyframes () throws Exception {
65
+ final CSSUnknownRuleImpl value = parseUnknownRule ("@keyframes load5 {0%, 100% {"
66
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
67
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
68
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
69
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
70
+ + "}" );
71
+
72
+ assertEquals ("@keyframes load5 {0%, 100% {"
73
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
74
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
75
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
76
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
77
+ + "}" , value .getCssText ());
78
+ assertEquals ("@keyframes load5 {0%, 100% {"
79
+ + "box-shadow: 0em -2.6em 0em 0em #000000, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), "
80
+ + "2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), "
81
+ + "0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), "
82
+ + "-2.6em 0em 0 0em rgba(0, 0, 0, 0.5), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.7);"
83
+ + "}" , value .toString ());
84
+ }
85
+
60
86
/**
61
87
* @throws Exception if any error occurs
62
88
*/
0 commit comments