forked from valpackett/cssprefixer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.py
executable file
·405 lines (348 loc) · 23.6 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
#!/usr/bin/env python
# CSSPrefixer
# Copyright 2010-2012 Greg V. <[email protected]>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest
import cssprefixer
class PrefixerTestCase(unittest.TestCase):
def test_common(self):
self.assertEqual(cssprefixer.process('a{border-radius: 1em}', minify=True),
'a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}')
def test_common_and_opera(self):
self.assertEqual(cssprefixer.process('a{transform: rotate(10deg)}', minify=True),
'a{-moz-transform:rotate(10deg);-ms-transform:rotate(10deg);-o-transform:rotate(10deg);-webkit-transform:rotate(10deg);transform:rotate(10deg)}')
def test_undefined(self):
#test prefixed styles that don't have a rule yet, we use a fake property
#for this test becuase we will never have a rule for this
self.assertEqual(cssprefixer.process('a{-webkit-faker: black}', minify=True),
'a{-webkit-faker:black}')
def test_webkit(self):
self.assertEqual(cssprefixer.process('a{background-clip: padding-box}', minify=True),
'a{-webkit-background-clip:padding-box;background-clip:padding-box}')
def test_appearance(self):
#test prefixed styles that don't have a rule yet, we use a fake property
#for this test becuase we will never have a rule for this
self.assertEqual(cssprefixer.process('a{-webkit-appearance: none;}', minify=True),
'a{-webkit-appearance:none;appearance:none}')
def test_ie_and_opera(self):
self.assertEqual(cssprefixer.process('a{text-overflow: ellipsis}', minify=True),
'a{-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}')
def test_moz_border_radius(self):
self.assertEqual(cssprefixer.process('a{border-top-left-radius: 1em;border-top-right-radius: 1em;border-bottom-right-radius: 1em;border-bottom-left-radius: 1em;}', minify=True),
'a{-webkit-border-top-left-radius:1em;-moz-border-radius-topleft:1em;border-top-left-radius:1em;-webkit-border-top-right-radius:1em;-moz-border-radius-topright:1em;border-top-right-radius:1em;-webkit-border-bottom-right-radius:1em;-moz-border-radius-bottomright:1em;border-bottom-right-radius:1em;-webkit-border-bottom-left-radius:1em;-moz-border-radius-bottomleft:1em;border-bottom-left-radius:1em}')
def test_cursor_zoom_in(self):
self.assertEqual(cssprefixer.process('a{cursor: zoom-in;}', minify=True),
'a{cursor:-moz-zoom-in;cursor:-webkit-zoom-in;cursor:zoom-in}')
def test_cursor_zoom_out(self):
self.assertEqual(cssprefixer.process('a{cursor: zoom-out;}', minify=True),
'a{cursor:-moz-zoom-out;cursor:-webkit-zoom-out;cursor:zoom-out}')
def test_flexbox(self):
self.assertEqual(cssprefixer.process('a{display: box;}', minify=True),
'a{display:-moz-box;display:-webkit-box;display:box}')
def test_displaybox(self):
self.assertEqual(cssprefixer.process('a{display: display;}', minify=True),
'a{display:display}')
def test_mq(self):
self.assertEqual(cssprefixer.process('@media screen and (min-width:480px){a{color:red}}', minify=True),
'@media screen and (min-width:480px){a{color:red}}')
def test_mq_common(self):
self.assertEqual(cssprefixer.process('@media screen and (min-width:480px){a{border-radius: 1em}}', minify=True),
'@media screen and (min-width:480px){a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}}')
def test_duplicate_common(self):
self.assertEqual(cssprefixer.process('a{border-radius: 1em;border-radius: 2em;border-radius: 3em}', minify=True),
'a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;-moz-border-radius:2em;-webkit-border-radius:2em;border-radius:2em;-moz-border-radius:3em;-webkit-border-radius:3em;border-radius:3em}')
def test_mixed_common(self):
self.assertEqual(cssprefixer.process('a{-moz-border-radius: 1em;border-radius: 2em;-webkit-border-radius: 3em}', minify=True),
'a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em;-moz-border-radius:2em;-webkit-border-radius:2em;border-radius:2em;-moz-border-radius:3em;-webkit-border-radius:3em;border-radius:3em}')
def test_mixed_duplicate(self):
self.assertEqual(cssprefixer.process('a{-moz-border-radius: 1em;border-radius: 1em;-webkit-border-radius: 1em}', minify=True),
'a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}')
def test_transition(self):
self.assertEqual(cssprefixer.process('''div {
-webkit-transition: color .25s linear, -webkit-transform .15s linear .1s;
}''', minify=False), '''div {
-moz-transition: color 0.25s linear, -moz-transform 0.15s linear 0.1s;
-o-transition: color 0.25s linear, -o-transform 0.15s linear 0.1s;
-webkit-transition: color 0.25s linear, -webkit-transform 0.15s linear 0.1s;
transition: color 0.25s linear, transform 0.15s linear 0.1s
}''')
def test_multi_transition(self):
self.assertEqual(cssprefixer.process('''div {
transition: color .25s linear;
transition: background-color .15s linear .1;
}''', minify=False), '''div {
-moz-transition: color 0.25s linear;
-o-transition: color 0.25s linear;
-webkit-transition: color 0.25s linear;
transition: color 0.25s linear;
-moz-transition: background-color 0.15s linear 0.1;
-o-transition: background-color 0.15s linear 0.1;
-webkit-transition: background-color 0.15s linear 0.1;
transition: background-color 0.15s linear 0.1
}''')
def test_transition_property(self):
self.assertEqual(cssprefixer.process('''div {
-webkit-transition-property: -webkit-transform, opacity, left;
-webkit-transition-duration: rotatey(45deg), 2s, 4s;
}''', minify=False), '''div {
-moz-transition-property: -moz-transform, opacity, left;
-o-transition-property: -o-transform, opacity, left;
-webkit-transition-property: -webkit-transform, opacity, left;
transition-property: transform, opacity, left;
-moz-transition-duration: rotatey(45deg), 2s, 4s;
-o-transition-duration: rotatey(45deg), 2s, 4s;
-webkit-transition-duration: rotatey(45deg), 2s, 4s;
transition-duration: rotatey(45deg), 2s, 4s
}''')
def test_no_mini(self):
self.assertEqual(cssprefixer.process('''.my-class, #my-id {
border-radius: 1em;
transition: all 1s ease;
box-shadow: #123456 0 0 10px;
display: box;
}''', minify=False), '''.my-class, #my-id {
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
border-radius: 1em;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
-webkit-transition: all 1s ease;
transition: all 1s ease;
-moz-box-shadow: #123456 0 0 10px;
-webkit-box-shadow: #123456 0 0 10px;
box-shadow: #123456 0 0 10px;
display: -moz-box;
display: -webkit-box;
display: box
}''')
def test_empty(self):
self.assertEqual(cssprefixer.process('a{}', minify=True), '')
self.assertEqual(cssprefixer.process('a{}', minify=False), '')
def test_media_no_mini(self):
self.assertEqual(cssprefixer.process('''@media screen and (max-device-width: 480px){
#book{
border-radius: 1em;
}
}''', minify=False), '''@media screen and (max-device-width: 480px) {
#book {
-moz-border-radius: 1em;
-webkit-border-radius: 1em;
border-radius: 1em
}
}''')
def test_comment(self):
self.assertEqual(cssprefixer.process('''/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block
}''', minify=False), '''/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block
}''')
def test_inline_comment(self):
#TODO: it would be nice if comments on the same line remained there, but this may not be possible because
#cssutils tears everything apart into objects and then we rebuild it.
self.assertEqual(cssprefixer.process('''article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;/* HTML5 display-role reset for older browsers */
}''', minify=False), '''article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
/* HTML5 display-role reset for older browsers */
}''')
self.assertEqual(cssprefixer.process('''article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
/* HTML5 display-role reset for older browsers */
display: block;
}''', minify=False), '''article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
/* HTML5 display-role reset for older browsers */
display: block
}''')
class WebkitPrefixerTestCase(unittest.TestCase):
def test_common(self):
self.assertEqual(cssprefixer.process('a{-webkit-border-radius: 1em}', minify=True),
'a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}')
def test_common_and_opera(self):
self.assertEqual(cssprefixer.process('a{-webkit-transform: rotate(10deg)}', minify=True),
'a{-moz-transform:rotate(10deg);-ms-transform:rotate(10deg);-o-transform:rotate(10deg);-webkit-transform:rotate(10deg);transform:rotate(10deg)}')
def test_webkit(self):
self.assertEqual(cssprefixer.process('a{-webkit-background-clip: padding-box}', minify=True),
'a{-webkit-background-clip:padding-box;background-clip:padding-box}')
def test_moz_border_radius(self):
self.assertEqual(cssprefixer.process('a{-webkit-border-top-left-radius: 1em;-webkit-border-top-right-radius: 1em;-webkit-border-bottom-right-radius: 1em;-webkit-border-bottom-left-radius: 1em;}', minify=True),
'a{-webkit-border-top-left-radius:1em;-moz-border-radius-topleft:1em;border-top-left-radius:1em;-webkit-border-top-right-radius:1em;-moz-border-radius-topright:1em;border-top-right-radius:1em;-webkit-border-bottom-right-radius:1em;-moz-border-radius-bottomright:1em;border-bottom-right-radius:1em;-webkit-border-bottom-left-radius:1em;-moz-border-radius-bottomleft:1em;border-bottom-left-radius:1em}')
def test_flexbox(self):
self.assertEqual(cssprefixer.process('a{-webkit-display: box;}', minify=True),
'a{display:-moz-box;display:-webkit-box;display:box}')
def test_mq_common(self):
self.assertEqual(cssprefixer.process('@media screen and (min-width:480px){a{-webkit-border-radius: 1em}}', minify=True),
'@media screen and (min-width:480px){a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}}')
class MozPrefixerTestCase(unittest.TestCase):
def test_common(self):
self.assertEqual(cssprefixer.process('a{-moz-border-radius: 1em}', minify=True),
'a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}')
def test_common_and_opera(self):
self.assertEqual(cssprefixer.process('a{-moz-transform: rotate(10deg)}', minify=True),
'a{-moz-transform:rotate(10deg);-ms-transform:rotate(10deg);-o-transform:rotate(10deg);-webkit-transform:rotate(10deg);transform:rotate(10deg)}')
def test_moz_border_radius(self):
self.assertEqual(cssprefixer.process('a{-moz-border-top-left-radius: 1em;-moz-border-top-right-radius: 1em;-moz-border-bottom-right-radius: 1em;-moz-border-bottom-left-radius: 1em;}', minify=True),
'a{-webkit-border-top-left-radius:1em;-moz-border-radius-topleft:1em;border-top-left-radius:1em;-webkit-border-top-right-radius:1em;-moz-border-radius-topright:1em;border-top-right-radius:1em;-webkit-border-bottom-right-radius:1em;-moz-border-radius-bottomright:1em;border-bottom-right-radius:1em;-webkit-border-bottom-left-radius:1em;-moz-border-radius-bottomleft:1em;border-bottom-left-radius:1em}')
def test_flexbox(self):
self.assertEqual(cssprefixer.process('a{-moz-display: box;}', minify=True),
'a{display:-moz-box;display:-webkit-box;display:box}')
def test_mq_common(self):
self.assertEqual(cssprefixer.process('@media screen and (min-width:480px){a{-moz-border-radius: 1em}}', minify=True),
'@media screen and (min-width:480px){a{-moz-border-radius:1em;-webkit-border-radius:1em;border-radius:1em}}')
class OperaPrefixerTestCase(unittest.TestCase):
def test_common_and_opera(self):
self.assertEqual(cssprefixer.process('a{-o-transform: rotate(10deg)}', minify=True),
'a{-moz-transform:rotate(10deg);-ms-transform:rotate(10deg);-o-transform:rotate(10deg);-webkit-transform:rotate(10deg);transform:rotate(10deg)}')
def test_ie_and_opera(self):
self.assertEqual(cssprefixer.process('a{-o-text-overflow: ellipsis}', minify=True),
'a{-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}')
class IePrefixerTestCase(unittest.TestCase):
def test_ie_and_opera(self):
self.assertEqual(cssprefixer.process('a{-ms-text-overflow: ellipsis}', minify=True),
'a{-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}')
class GradientTestCase(unittest.TestCase):
def test_basic(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: linear-gradient(top, #444444, #999999);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(top, #444, #999);
background-image: -o-linear-gradient(top, #444, #999);
background-image: -webkit-linear-gradient(top, #444, #999);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background-image: linear-gradient(top, #444, #999)
}''')
def test_linear_no_pos(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: linear-gradient(#444444, #999999);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(#444, #999);
background-image: -o-linear-gradient(#444, #999);
background-image: -webkit-linear-gradient(#444, #999);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background-image: linear-gradient(#444, #999)
}''')
def test_webkit(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: -webkit-linear-gradient(top, #444444, #999999);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(top, #444, #999);
background-image: -o-linear-gradient(top, #444, #999);
background-image: -webkit-linear-gradient(top, #444, #999);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background-image: linear-gradient(top, #444, #999)
}''')
def test_webkit_mixed(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: -webkit-linear-gradient(top, #444444, #999999), linear-gradient(top, black, white);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(top, #444, #999), -moz-linear-gradient(top, black, white);
background-image: -o-linear-gradient(top, #444, #999), -o-linear-gradient(top, black, white);
background-image: -webkit-linear-gradient(top, #444, #999), -webkit-linear-gradient(top, black, white);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999)), -webkit-gradient(linear, left top, left bottom, color-stop(0, black), color-stop(1, white));
background-image: linear-gradient(top, #444, #999), linear-gradient(top, black, white)
}''')
def test_moz(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: -moz-linear-gradient(top, #444444, #999999);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(top, #444, #999);
background-image: -o-linear-gradient(top, #444, #999);
background-image: -webkit-linear-gradient(top, #444, #999);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background-image: linear-gradient(top, #444, #999)
}''')
def test_o(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: -o-linear-gradient(top, #444444, #999999);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(top, #444, #999);
background-image: -o-linear-gradient(top, #444, #999);
background-image: -webkit-linear-gradient(top, #444, #999);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background-image: linear-gradient(top, #444, #999)
}''')
def test_webkit_gradient(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(#444, #999);
background-image: -o-linear-gradient(#444, #999);
background-image: -webkit-linear-gradient(#444, #999);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background-image: linear-gradient(#444, #999)
}''')
def test_webkit_gradient_mixed(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999)), -webkit-linear-gradient(top, black, white);
}''', minify=False), '''.box_gradient {
background-image: -moz-linear-gradient(#444, #999), -moz-linear-gradient(top, black, white);
background-image: -o-linear-gradient(#444, #999), -o-linear-gradient(top, black, white);
background-image: -webkit-linear-gradient(#444, #999), -webkit-linear-gradient(top, black, white);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999)), -webkit-gradient(linear, left top, left bottom, color-stop(0, black), color-stop(1, white));
background-image: linear-gradient(#444, #999), linear-gradient(top, black, white)
}''')
def test_image(self):
#I don't think this test produces valid css but it shows that data and order is being preserved.
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image: url(images/background.png), linear-gradient(top, black, white);
}''', minify=False), '''.box_gradient {
background-image: url(images/background.png), -moz-linear-gradient(top, black, white);
background-image: url(images/background.png), -o-linear-gradient(top, black, white);
background-image: url(images/background.png), -webkit-linear-gradient(top, black, white);
background-image: url(images/background.png), -webkit-gradient(linear, left top, left bottom, color-stop(0, black), color-stop(1, white));
background-image: url(images/background.png), linear-gradient(top, black, white)
}''')
def test_background_multiple_images(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background: url(images/cross.png), url(images/gradient.png) top center no-repeat, url(images/background.png);
}''', minify=False), '''.box_gradient {
background: url(images/cross.png), url(images/gradient.png) top center no-repeat, url(images/background.png)
}''')
def test_background_multiple_images_and_gradient(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background: linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png);
}''', minify=False), '''.box_gradient {
background: -moz-linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png);
background: -o-linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png);
background: -webkit-linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, black), color-stop(1, white)), url(images/gradient.png) top center no-repeat, url(images/background.png);
background: linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png)
}''')
def test_background_multiple_images_and_gradients(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background: linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png), -moz-linear-gradient(top, #444444, #999999);
}''', minify=False), '''.box_gradient {
background: -moz-linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png), -moz-linear-gradient(top, #444, #999);
background: -o-linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png), -o-linear-gradient(top, #444, #999);
background: -webkit-linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png), -webkit-linear-gradient(top, #444, #999);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, black), color-stop(1, white)), url(images/gradient.png) top center no-repeat, url(images/background.png), -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(1, #999));
background: linear-gradient(top, black, white), url(images/gradient.png) top center no-repeat, url(images/background.png), linear-gradient(top, #444, #999)
}''')
#cssutils cannot parse this rule
def _test_background_multiple_images_and_gradients(self):
self.assertEqual(cssprefixer.process('''.box_gradient {
background-image:
url('../img/arrow.png'),
-webkit-gradient(
linear,
left top,
left bottom,
from(rgb(240, 240, 240)),
to(rgb(210, 210, 210))
)}''', minify=False), '''.box_gradient {
}''')
def test_keyframes(self):
self.assertEqual(cssprefixer.process('''@keyframes round {
from {border-radius: 2px}
to {border-radius: 10px}
}''', minify=False), "@-webkit-keyframes {\nfrom {\n -webkit-border-radius: 2px;\n border-radius: 2px\n }\nto {\n -webkit-border-radius: 10px;\n border-radius: 10px\n }\n}\n@-moz-keyframes {\nfrom {\n -moz-border-radius: 2px;\n border-radius: 2px\n }\nto {\n -moz-border-radius: 10px;\n border-radius: 10px\n }\n}\n@keyframes round {\n from {\n border-radius: 2px\n } to {\n border-radius: 10px\n }\n }")
if __name__ == '__main__':
unittest.main()