Skip to content

Commit 2e7e4e3

Browse files
committed
Added failing test for comments above at-rules.
* See issue #34.
1 parent e9f534c commit 2e7e4e3

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

test/cases/comment.at-rule.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@-webkit-keyframes test {
2+
/* 0% above */
3+
0% {
4+
/* 0% inside */
5+
color: red;
6+
}
7+
8+
/* 100% above */
9+
100% {
10+
/* 100% inside */
11+
color: green;
12+
}
13+
}

test/cases/comment.at-rule.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"type":"stylesheet",
3+
"stylesheet":{
4+
"rules":[
5+
{
6+
"type":"keyframes",
7+
"name":"test",
8+
"vendor":"-webkit-",
9+
"keyframes":[
10+
{
11+
"type":"comment",
12+
"comment":" 0% above "
13+
},
14+
{
15+
"type":"keyframe",
16+
"values":[
17+
"0%"
18+
],
19+
"declarations":[
20+
{
21+
"type":"comment",
22+
"comment":" 0% inside "
23+
},
24+
{
25+
"type":"declaration",
26+
"property":"color",
27+
"value":"red"
28+
}
29+
]
30+
},
31+
{
32+
"type":"comment",
33+
"comment":" 100% above "
34+
},
35+
{
36+
"type":"keyframe",
37+
"values":[
38+
"100%"
39+
],
40+
"declarations":[
41+
{
42+
"type":"comment",
43+
"comment":" 100% above "
44+
},
45+
{
46+
"type":"declaration",
47+
"property":"color",
48+
"value":"green"
49+
}
50+
]
51+
}
52+
]
53+
}
54+
]
55+
}
56+
}

0 commit comments

Comments
 (0)