-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathcaniuse.html
More file actions
1451 lines (1194 loc) · 85.4 KB
/
Copy pathcaniuse.html
File metadata and controls
1451 lines (1194 loc) · 85.4 KB
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
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<!-- saved from url=(0025)http://tests.caniuse.com/ -->
<html class=" no-js"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>WCIU test page</title>
<meta charset="utf-8">
<!-- pull in latest modernizr -->
<script src="../modernizr.js"></script>
<script src="./caniuse_files/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="./caniuse_files/style.css">
<script>
function setResult(id, result) {
$('#' + id).addClass(result ? 'pass' : 'fail');
}
</script>
</head><body><h2>The <a href="http://caniuse.com/">When can I use...</a> test suite... <small>(originally from <a href="http://tests.caniuse.com/">tests.caniuse.com</a>)</small></h2>
<div id="intro">
<p>This is a basic test suite of various web technologies for the <a href="./caniuse_files/caniuse.html">When Can I Use</a> website.</p>
<p>It is used to quickly test basic support for features in upcoming browsers, rather than any full support of the feature's specification.</p>
<p>Results on this page generally match the results as they appear on the When Can I Use site, but <strong>may not always</strong> due to a variety of circumstances (test may pass but support is actually buggy, not tested well enough, has alternative method, etc).</p>
<p>Four different types of tests are used:</p>
<dl>
<dt>Auto</dt>
<dd>Automated JS-based tests. (m) means <a href="http://modernizr.com/">Modernizr</a> is used.</dd>
<dt>Visual</dt>
<dd>Requires visual confirmation/comparison to confirm</dd>
<dt>Visual-square</dt>
<dd>Test must create a 30x30px green (lime) square</dd>
<dt>Interactive</dt>
<dd>Requires interaction to confirm support</dd>
</dl>
<p>If you are interested in contributing tests you can contact me at: when (at) caniuse (dotcom).</p>
</div>
<div id="options">
<form action="http://tests.caniuse.com/?" method="get"><label for="browser_list">Select browser to compare results with: </label><select id="ua" name="ua" autocomplete="false"><option value="">(none)</option><option value="and2.1">Android Browser 2.1</option><option value="and2.2">Android Browser 2.2</option><option value="and2.3">Android Browser 2.3</option><option value="and3">Android Browser 3</option><option value="chr10">Chrome 10</option><option value="chr11">Chrome 11</option><option value="chr12">Chrome 12</option><option value="chr13" selected="">Chrome 13</option><option value="chr4">Chrome 4</option><option value="chr5">Chrome 5</option><option value="chr6">Chrome 6</option><option value="chr7">Chrome 7</option><option value="chr8">Chrome 8</option><option value="chr9">Chrome 9</option><option value="ff2">Firefox 2</option><option value="ff3">Firefox 3</option><option value="ff3.5">Firefox 3.5</option><option value="ff3.6">Firefox 3.6</option><option value="ff4">Firefox 4</option><option value="ff5">Firefox 5</option><option value="ff6">Firefox 6</option><option value="ie10">IE 10</option><option value="ie5.5">IE 5.5</option><option value="ie6">IE 6</option><option value="ie7">IE 7</option><option value="ie8">IE 8</option><option value="ie9">IE 9</option><option value="ios3.2">iOS Safari 3.2</option><option value="ios4.1">iOS Safari 4.0-4.1</option><option value="ios4.2">iOS Safari 4.2-4.3</option><option value="op10.1">Opera 10.0-10.1</option><option value="op10.5">Opera 10.5</option><option value="op10.6">Opera 10.6</option><option value="op11">Opera 11</option><option value="op11.1">Opera 11.1</option><option value="op11.5">Opera 11.5</option><option value="op12">Opera 12</option><option value="op9">Opera 9</option><option value="op9.6">Opera 9.5-9.6</option><option value="omini5">Opera Mini 5.0-6.0</option><option value="omob10">Opera Mobile 10</option><option value="omob11">Opera Mobile 11</option><option value="saf3.1">Safari 3.1</option><option value="saf3.2">Safari 3.2</option><option value="saf4">Safari 4</option><option value="saf5">Safari 5</option><option value="saf6">Safari 6</option></select><div><label for="prefix">Select CSS prefix to use (does not affect modernizr or non-CSS tests): </label><select id="prefix" name="prefix" autocomplete="false"><option value="all" selected="">All combinations</option><option value="-webkit-">-webkit-</option><option value="-moz-">-moz-</option><option value="-ms-">-ms-</option><option value="-o-">-o-</option><option value="none">(no prefix)</option></select><input id="opt_submit" type="submit" value="Go"></div></form></div><table><caption>Tests</caption><thead><tr><th>Feature</th><th>chr13</th><th>Tests</th></tr></thead><tbody><tr><th><h3>Toolbar/context menu</h3><span class="links">[<a href="http://caniuse.com/menu">Table</a>] [<a href="http://tests.caniuse.com/?feat=menu&prefix=all">Single feat</a>]</span></th><td class="current unknown"> </td><td>
</td></tr>
<tr><th><h3>Audio element</h3><span class="links">[<a href="http://caniuse.com/audio">Table</a>] [<a href="http://tests.caniuse.com/?feat=audio&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="audio0" class="auto pass"></div><script>
setResult('audio0', !!document.createElement('audio').canPlayType);
</script><div class="info">document.createElement('audio').canPlayType</div></div>
<div class="test_wrap"><h3>Interact</h3><div id="audio1" class="interact"></div><audio controls="">
<source src="mimeaud.php?type=.wav">
<source src="mimeaud.php?type=.mp3">
<source src="mimeaud.php?type=.ogg">
<source src="mimeaud.php?type=.aac">
<source src="mimeaud.php?type=.flac">
<source src="mimeaud.php?type=.wma">
Audio fail
</audio>
<div class="info">Audio element with 6 different sources (with MIME set)</div></div>
<div class="test_wrap"><h3>Interact</h3><div id="audio2" class="interact"></div><audio controls="">
<source src="mimeaud.php?nomime=1&type=.wav">
<source src="mimeaud.php?nomime=1&type=.mp3">
<source src="mimeaud.php?nomime=1&type=.ogg">
<source src="mimeaud.php?nomime=1&type=.aac">
<source src="mimeaud.php?nomime=1&type=.flac">
<source src="mimeaud.php?nomime=1&type=.wma">
-->
Audio fail
</audio>
<div class="info">Audio element with 6 different sources (no MIME set)</div></div>
</td></tr>
<tr><th><h3>CSS3 Background-image options</h3><span class="links">[<a href="http://caniuse.com/background-img-opts">Table</a>] [<a href="http://tests.caniuse.com/?feat=background-img-opts&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="background-img-opts0" class="auto pass"></div><script>setResult('background-img-opts0', Modernizr.backgroundsize);</script><div class="info">Modernizr test for: "backgroundsize"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="background-img-opts1" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;background:lime">
<div style="-webkit-background-clip:content-box;-moz-background-clip:content-box;-ms-background-clip:content-box;-o-background-clip:content-box;background-clip:content-box;padding:30px 30px 0 0;background-color:red"></div>
</div>
</div><div class="info">background-clip: content-box;</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="background-img-opts2" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;background:lime">
<div style="-webkit-background-origin:content-box;-moz-background-origin:content-box;-ms-background-origin:content-box;-o-background-origin:content-box;background-origin:content-box;padding:30px 30px 0 0;background-image:url(caniuse_files/red30x30.png);background-repeat: no-repeat;"></div>
</div>
</div><div class="info">background-origin: content-box;</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="background-img-opts2" class="visual-square"></div><div class="square"><div style="-webkit-background-size:30px 30px;-moz-background-size:30px 30px;-ms-background-size:30px 30px;-o-background-size:30px 30px;background-size:30px 30px;background-image:url(caniuse_files/green5x5.png);background-repeat: no-repeat;width:30px;height:30px;"></div>
</div><div class="info">background-size: 30px 30px;</div></div>
</td></tr>
<tr><th><h3>CSS3 Border images</h3><span class="links">[<a href="http://caniuse.com/border-image">Table</a>] [<a href="http://tests.caniuse.com/?feat=border-image&prefix=all">Single feat</a>]</span></th><td class="current partial"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="border-image0" class="auto pass"></div><script>setResult('border-image0', Modernizr.borderimage);</script><div class="info">Modernizr test for: "borderimage"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="border-image1" class="visual-square"></div><div class="square"><div style="border-width: 15px; -webkit-border-image-source: url(caniuse_files/green5x5.png);-moz-border-image-source: url(caniuse_files/green5x5.png);-ms-border-image-source: url(caniuse_files/green5x5.png);-o-border-image-source: url(caniuse_files/green5x5.png);border-image-source: url(caniuse_files/green5x5.png);-webkit-border-image-slice: 2;-moz-border-image-slice: 2;-ms-border-image-slice: 2;-o-border-image-slice: 2;border-image-slice: 2; width:0; height: 0;"></div></div><div class="info">Separate properties:
border-image-source: url(caniuse_files/green5x5.png);
border-image-slice: 2;</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="border-image3" class="visual-square"></div><div class="square"><div style="border-width: 15px; -webkit-border-image: url(caniuse_files/green5x5.png) 2;-moz-border-image: url(caniuse_files/green5x5.png) 2;-ms-border-image: url(caniuse_files/green5x5.png) 2;-o-border-image: url(caniuse_files/green5x5.png) 2;border-image: url(caniuse_files/green5x5.png) 2; width:0; height: 0;"></div></div><div class="info">Shorthand syntax: border-image: url(caniuse_files/green5x5.png) 2;</div></div>
</td></tr>
<tr><th><h3>CSS3 Border-radius (rounded corners)</h3><span class="links">[<a href="http://caniuse.com/border-radius">Table</a>] [<a href="http://tests.caniuse.com/?feat=border-radius&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="border-radius0" class="auto pass"></div><script>setResult('border-radius0', Modernizr.borderradius);</script><div class="info">Modernizr test for: "borderradius"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="border-radius1" class="visual-square"></div><div class="square"><div style="width:30px; height:30px; overflow:hidden; position:relative;">
<div style="background:lime; height: 40px; "></div>
<div style="background:red; position:absolute; z-index:10; top: 0;
height: 400px; width: 400px;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
-ms-border-radius: 150px;
-o-border-radius: 150px;
border-radius: 150px;
"></div>
</div></div></div>
</td></tr>
<tr><th><h3>Canvas (basic support)</h3><span class="links">[<a href="http://caniuse.com/canvas">Table</a>] [<a href="http://tests.caniuse.com/?feat=canvas&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="canvas0" class="auto pass"></div><script>setResult('canvas0', Modernizr.canvas);</script><div class="info">Modernizr test for: "canvas"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="canvas1" class="visual-square"></div><div class="square"><canvas width="30" height="30" style="background:red;" id="canv_test"></canvas>
<script>
var canvas = $('#canv_test')[0],
ctx = canvas.getContext && canvas.getContext('2d');
if (ctx){
ctx.fillStyle = '#00ff00';
ctx.fillRect(0,0,100,40);
}
</script></div><div class="info">Draw rect on canvas using fillStyle and fillRect</div></div>
</td></tr>
<tr><th><h3>classList (DOMTokenList )</h3><span class="links">[<a href="http://caniuse.com/classlist">Table</a>] [<a href="http://tests.caniuse.com/?feat=classlist&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="classlist0" class="auto pass"></div><script>
setResult('classlist0', "classList" in document.body);
</script><div class="info">"classList" in document.body</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="classlist1" class="visual-square"></div><div class="square"><div id="classlisttest" class="pass" style="width:30px;height:30px;"></div>
<script>
try{
document.getElementById('classlisttest').classList.remove('fail');
document.getElementById('classlisttest').classList.add('pass');
}catch(e){}
</script></div></div>
</td></tr>
<tr><th><h3>Cross-Origin Resource Sharing</h3><span class="links">[<a href="http://caniuse.com/cors">Table</a>] [<a href="http://tests.caniuse.com/?feat=cors&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="cors0" class="auto pass"></div><script>
$(function() {
$.get('http://a.deveria.com/tests/cors/true.php', function(data) {
setResult('cors0', data);
});
});
</script><div class="info">Instant XHR request on page that should permit it.</div></div>
</td></tr>
<tr><th><h3>CSS3 Animation</h3><span class="links">[<a href="http://caniuse.com/css-animation">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-animation&prefix=all">Single feat</a>]</span></th><td class="current pass"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css-animation0" class="auto pass"></div><script>setResult('css-animation0', Modernizr.cssanimations);</script><div class="info">Modernizr test for: "cssanimations"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-animation1" class="visual-square"></div><div class="square"><style>
#css-animation1test {
-webkit-animation: staylime 60s infinite;
-moz-animation: staylime 60s infinite;
-ms-animation: staylime 60s infinite;
-o-animation: staylime 60s infinite;
animation: staylime 60s infinite;
}
@-webkit-keyframes staylime {
from { background-color: lime; }
to { background-color: lime; }
}
@-moz-keyframes staylime {
from { background-color: lime; }
to { background-color: lime; }
}
@-ms-keyframes staylime {
from { background-color: lime; }
to { background-color: lime; }
}
@-o-keyframes staylime {
from { background-color: lime; }
to { background-color: lime; }
}
@keyframes staylime {
from { background-color: lime; }
to { background-color: lime; }
}
</style>
<div id="css-animation1test" style="width:30px;height:30px;"></div></div><div class="info">animation: staylime 60s infinite;
@keyframes staylime {
from { background-color: lime; }
to { background-color: lime; }
}</div></div>
</td></tr>
<tr><th><h3>CSS3 Box-shadow</h3><span class="links">[<a href="http://caniuse.com/css-boxshadow">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-boxshadow&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css-boxshadow0" class="auto pass"></div><script>setResult('css-boxshadow0', Modernizr.boxshadow);</script><div class="info">Modernizr test for: "boxshadow"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-boxshadow1" class="visual-square"></div><div class="square"><div style="background:red; width: 30px; height: 30px;
-webkit-box-shadow: inset lime 0px 0px 150px;
-moz-box-shadow: inset lime 0px 0px 150px;
-ms-box-shadow: inset lime 0px 0px 150px;
-o-box-shadow: inset lime 0px 0px 150px;
box-shadow: inset lime 0px 0px 150px;
"></div>
</div><div class="info">Must be greenish, may not be entirely lime depending on the implementation.</div></div>
</td></tr>
<tr><th><h3>CSS position:fixed</h3><span class="links">[<a href="http://caniuse.com/css-fixed">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-fixed&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Interact</h3><div id="css-fixed1" class="interact"></div><a href="http://tests.caniuse.com/fixed.html">Test here</a></div>
</td></tr>
<tr><th><h3>CSS Gradients</h3><span class="links">[<a href="http://caniuse.com/css-gradients">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-gradients&prefix=all">Single feat</a>]</span></th><td class="current pass"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css-gradients0" class="auto pass"></div><script>setResult('css-gradients0', Modernizr.cssgradients);</script><div class="info">Modernizr test for: "cssgradients"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-gradients1" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;background-image: -webkit-linear-gradient(lime, lime);background-image: -moz-linear-gradient(lime, lime);background-image: -ms-linear-gradient(lime, lime);background-image: -o-linear-gradient(lime, lime);background-image: linear-gradient(lime, lime);"></div></div><div class="info">linear-gradient(lime, lime);</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-gradients2" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;background-image:-webkit-radial-gradient(lime, lime);background-image:-moz-radial-gradient(lime, lime);background-image:-ms-radial-gradient(lime, lime);background-image:-o-radial-gradient(lime, lime);background-image:radial-gradient(lime, lime);"></div></div><div class="info">radial-gradient(lime, lime)</div></div>
</td></tr>
<tr><th><h3>CSS3 Opacity</h3><span class="links">[<a href="http://caniuse.com/css-opacity">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-opacity&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css-opacity0" class="auto pass"></div><script>setResult('css-opacity0', Modernizr.opacity);</script><div class="info">Modernizr test for: "opacity"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-opacity1" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;position:relative;background:lime">
<div style="width:30px;height:30px;background:red;-webkit-opacity:0;-moz-opacity:0;-ms-opacity:0;-o-opacity:0;opacity:0;"></div></div>
</div>
</div><div class="info">Test for opacity: 0</div>
</td></tr>
<tr><th><h3>CSS3 Text-shadow</h3><span class="links">[<a href="http://caniuse.com/css-textshadow">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-textshadow&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css-textshadow0" class="auto pass"></div><script>setResult('css-textshadow0', Modernizr.textshadow);</script><div class="info">Modernizr test for: "textshadow"</div></div>
<div class="test_wrap"><h3>Visual</h3><div id="css-textshadow1" class="visual"></div><div class="vis_test"><div style="width:30px;height:30px;overflow:hidden" id="css-textshadow1">
<div style="font:25px/25px Times New Roman, Times; color:white;-webkit-text-shadow:25px 0 3px lime;-moz-text-shadow:25px 0 3px lime;-ms-text-shadow:25px 0 3px lime;-o-text-shadow:25px 0 3px lime;text-shadow:25px 0 3px lime;position:relative; left:-25px;">A</div>
</div></div><div class="vis_ref"><img src="./caniuse_files/text-shadow1.png"></div><div class="info">font-size: 25px;
color: white;
text-shadow: 25px 0 3px lime; position: relative;
left: -25px;</div></div>
<div class="test_wrap"><h3>Visual</h3><div id="css-textshadow2" class="visual"></div><div class="vis_test"><div style="width:40px;height:30px;overflow:hidden" id="css-textshadow2">
<div style="font:25px/25px Times New Roman, Times; color:white; -webkit-text-shadow:25px 0 3px #0F0, 35px 0 3px #0C0, 45px 0 3px #090;-moz-text-shadow:25px 0 3px #0F0, 35px 0 3px #0C0, 45px 0 3px #090;-ms-text-shadow:25px 0 3px #0F0, 35px 0 3px #0C0, 45px 0 3px #090;-o-text-shadow:25px 0 3px #0F0, 35px 0 3px #0C0, 45px 0 3px #090;text-shadow:25px 0 3px #0F0, 35px 0 3px #0C0, 45px 0 3px #090; position:relative; left:-35px;">A</div>
</div>
</div><div class="vis_ref"><img src="./caniuse_files/text-shadow2.png"></div><div class="info">Multiple shadow test</div></div>
</td></tr>
<tr><th><h3>CSS3 Transitions</h3><span class="links">[<a href="http://caniuse.com/css-transitions">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-transitions&prefix=all">Single feat</a>]</span></th><td class="current pass"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css-transitions0" class="auto pass"></div><script>setResult('css-transitions0', Modernizr.csstransitions);</script><div class="info">Modernizr test for: "csstransitions"</div></div>
<div class="test_wrap"><h3>Interact</h3><div id="css-transitions1" class="interact"></div><style>
#css-transitions1wrap {
width: 30px;
height: 30px;
border: 1px solid;
overflow: hidden;
margin: 0 auto;
}
#css-transitions1test {
-webkit-transition-property: left;
-webkit-transition-duration: 3s;
-webkit-transition-timing-function: cubic-bezier(0, 1, 1, 0);
-moz-transition-property: left;
-moz-transition-duration: 3s;
-moz-transition-timing-function: cubic-bezier(0, 1, 1, 0);
-ms-transition-property: left;
-ms-transition-duration: 3s;
-ms-transition-timing-function: cubic-bezier(0, 1, 1, 0);
-o-transition-property: left;
-o-transition-duration: 3s;
-o-transition-timing-function: cubic-bezier(0, 1, 1, 0);
transition-property: left;
transition-duration: 3s;
transition-timing-function: cubic-bezier(0, 1, 1, 0);
background-color: lime;
position: relative;
left: -30px;
top: 0;
}
#css-transitions1wrap:hover #css-transitions1test {
left: 30px;
}
</style>
<div id="css-transitions1wrap">
<div id="css-transitions1test" style="width:30px;height:30px;"></div>
</div><p class="condition">Green square must (briefly) appear on hover</p><div class="info">5 second transition from left to right using cubic-bezier(0, 1, 1, 0); </div></div>
</td></tr>
<tr><th><h3>CSS3 Colors</h3><span class="links">[<a href="http://caniuse.com/css3-colors">Table</a>] [<a href="http://tests.caniuse.com/?feat=css3-colors&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="css3-colors0" class="auto pass"></div><script>setResult('css3-colors0', Modernizr.hsla);</script><div class="info">Modernizr test for: "hsla"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css3-colors1" class="visual-square"></div><div class="square"><div style="background-color: red; width: 30px; height: 30px; background-color: hsl(120, 100%, 50%);"></div></div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css3-colors2" class="visual-square"></div><div class="square"><div style="background-color: red; width: 30px; height: 30px; background-color: rgba(0, 255, 0, 1);"></div></div></div>
</td></tr>
<tr><th><h3>dataset & data-* attributes</h3><span class="links">[<a href="http://caniuse.com/dataset">Table</a>] [<a href="http://tests.caniuse.com/?feat=dataset&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="dataset0" class="auto pass" data-foo="bar"></div><script>
var result = 'dataset' in document.body;
if(result) {
var elem = document.getElementById('dataset0'); elem.setAttribute('data-foo', 'bar');
result = elem.dataset.foo == 'bar';
}
setResult('dataset0', result);
</script><div class="info">Test for 'dataset' in document.body and getting the correct value returned from a data-foo attribute.</div></div>
<div class="test_wrap"><h3>Interact</h3><div id="dataset1" class="interact"></div><a href="http://trac.webkit.org/export/66582/trunk/LayoutTests/fast/dom/dataset.html">Test here</a></div>
</td></tr>
<tr><th><h3>Details & Summary elements</h3><span class="links">[<a href="http://caniuse.com/details">Table</a>] [<a href="http://tests.caniuse.com/?feat=details&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="details0" class="auto pass"></div><script>
setResult('details0', 'open' in document.createElement('details'));
</script></div>
<div class="test_wrap"><h3>Interact</h3><div id="details1" class="interact"></div><details>
<summary>(summary button)</summary>
<p>(detail contents)</p>
</details><p class="condition">"(detail contents)" should be visible ONLY after clicking summary</p><div class="info">Basic details element with summary and paragraph as children.</div></div>
</td></tr>
<tr><th><h3>Server-sent DOM events</h3><span class="links">[<a href="http://caniuse.com/eventsource">Table</a>] [<a href="http://tests.caniuse.com/?feat=eventsource&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="eventsource0" class="auto pass"></div><script>
setResult('eventsource0', typeof EventSource !== 'undefined');
</script></div>
</td></tr>
<tr><th><h3>File API</h3><span class="links">[<a href="http://caniuse.com/fileapi">Table</a>] [<a href="http://tests.caniuse.com/?feat=fileapi&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="fileapi0" class="auto pass"></div><script>
setResult('fileapi0', !!window.FileReader);
</script></div>
</td></tr>
<tr><th><h3>Flexible Box Layout Module</h3><span class="links">[<a href="http://caniuse.com/flexbox">Table</a>] [<a href="http://tests.caniuse.com/?feat=flexbox&prefix=all">Single feat</a>]</span></th><td class="current pass"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="flexbox0" class="auto pass"></div><script>setResult('flexbox0', Modernizr.flexbox);</script><div class="info">Modernizr test for: "flexbox"</div></div>
</td></tr>
<tr><th><h3>@font-face Web fonts</h3><span class="links">[<a href="http://caniuse.com/fontface">Table</a>] [<a href="http://tests.caniuse.com/?feat=fontface&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="fontface0" class="auto pass"></div><script>setResult('fontface0', Modernizr.fontface);</script><div class="info">Modernizr test for: "fontface"</div></div>
</td></tr>
<tr><th><h3>Geolocation</h3><span class="links">[<a href="http://caniuse.com/geolocation">Table</a>] [<a href="http://tests.caniuse.com/?feat=geolocation&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="geolocation0" class="auto pass"></div><script>setResult('geolocation0', Modernizr.geolocation);</script><div class="info">Modernizr test for: "geolocation"</div></div>
<div class="test_wrap"><h3>Auto</h3><div id="geolocation1" class="auto pass"></div><script>
(function() {
var result = false;
var geo = navigator.geolocation;
if(geo) {
result = (
"getCurrentPosition" in geo
&& "watchPosition" in geo
&& "clearWatch" in geo
);
}
setResult('geolocation1', result);
}());
</script><div class="info">Test for getCurrentPosition, watchPosition and clearWatch in navigator.geolocation</div></div>
<div class="test_wrap"><h3>Interact</h3><div id="geolocation2" class="interact"></div><button id="geolocation2test">Get location</button>
<script>
(function() {
var btn = document.getElementById('geolocation2test');
if(!navigator.geolocation && !navigator.geolocation.getCurrentPosition) return false;
btn.onclick = function() {
var feat = document.getElementById('geolocation2');
navigator.geolocation.getCurrentPosition(function(pos) {
feat.innerHTML = '<p>Result:<br>LAT: ' + pos.coords.latitude + '<br>LON: ' + pos.coords.longitude + '</p>';
}, function(error) {
feat.innerHTML = '<p>Error:' + error.message + '</p>';
});
feat.innerHTML = '<p>Waiting for response...</p>';
return false;
}
})();
</script><p class="condition">Must provide LAT and LON info (may need to give permission first)</p><div class="info">Test for navigator.geolocation.getCurrentPosition on which position.coords.latitude and position.coords.longitude are expected. </div></div>
</td></tr>
<tr><th><h3>getElementsByClassName</h3><span class="links">[<a href="http://caniuse.com/getelementsbyclassname">Table</a>] [<a href="http://tests.caniuse.com/?feat=getelementsbyclassname&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="getelementsbyclassname0" class="auto pass"></div><script>
setResult('getelementsbyclassname0', typeof document.getElementsByClassName === 'function')
</script></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="getelementsbyclassname1" class="visual-square"></div><div class="square"><div style="width: 30px; height: 30px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: lime; background-position: initial initial; background-repeat: initial initial; " id="getelementsbyclassname1container">
<div id="getelementsbyclassname1test">
<div class="getelementsbyclassname1test"></div>
<div class="getelementsbyclassname1test altgetelementsbyclassname1test"></div>
<div class="altgetelementsbyclassname1test"></div>
</div>
<script>
(function() {
if(document.getElementsByClassName) {
var elems = document.getElementsByClassName('getelementsbyclassname1test');
var from_id = document.getElementById('getelementsbyclassname1test').getElementsByTagName('*');
if(elems.length && elems.length === 2) {
if(elems[0] === from_id[0] && elems[1] === from_id[1]) {
document.getElementById('getelementsbyclassname1container').style.background = 'lime';
}
}
}
}());
</script></div><div class="info">Test if two divs were correctly retrieved using getElementsByClassName</div></div>
</div></td></tr>
<tr><th><h3>Hashchange event</h3><span class="links">[<a href="http://caniuse.com/hashchange">Table</a>] [<a href="http://tests.caniuse.com/?feat=hashchange&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="hashchange0" class="auto pass"></div><script>setResult('hashchange0', Modernizr.hashchange);</script><div class="info">Modernizr test for: "hashchange"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="hashchange1" class="visual-square"></div><div class="square"><iframe style="width:30px;height:30px;border:0" src="./caniuse_files/hashchange.html"></iframe></div><div class="info">iframe with addEventListener('hashchange', function() {
document.body.style.background = 'lime';
}, false);
</div></div>
</td></tr>
<tr><th><h3>Session history management</h3><span class="links">[<a href="http://caniuse.com/history">Table</a>] [<a href="http://tests.caniuse.com/?feat=history&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="history0" class="auto pass"></div><script>setResult('history0', Modernizr.history);</script><div class="info">Modernizr test for: "history"</div></div>
<div class="test_wrap"><h3>Auto</h3><div id="history1" class="auto"></div><iframe src="./caniuse_files/pushstate.html#history1" style="display:none"></iframe><div class="info">Test if history.pushState was successful</div></div>
</td></tr>
<tr><th><h3>IndexedDB</h3><span class="links">[<a href="http://caniuse.com/indexeddb">Table</a>] [<a href="http://tests.caniuse.com/?feat=indexeddb&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="indexeddb0" class="auto pass"></div><script>setResult('indexeddb0', Modernizr.indexeddb);</script><div class="info">Modernizr test for: "indexeddb"</div></div>
</td></tr>
<tr><th><h3>JSON parsing</h3><span class="links">[<a href="http://caniuse.com/json">Table</a>] [<a href="http://tests.caniuse.com/?feat=json&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="json0" class="auto pass"></div><script>
setResult('json0', 'JSON' in window)
</script></div>
<div class="test_wrap"><h3>Auto</h3><div id="json1" class="auto pass"></div><script>
(function() {
try {
var obj = {
key1: 'my_str',
key2: ['my', 'array'],
key3: {
my: 'object',
with_numbers: [1, 2, 3, 4.5678],
and_also: 9
}
};
var str = JSON.stringify(obj);
if(typeof str === 'string') {
var new_obj = JSON.parse(str);
if(
new_obj.key1 === 'my_str'
&& new_obj.key2.length === 2
&& new_obj.key2[1] === 'array'
&& new_obj.key3.with_numbers[3] === 4.5678
&& new_obj.key3.and_also === 9
) {
setResult('json1', true);
} else {
setResult('json1', false);
}
} else {
setResult('json1', false);
}
} catch(e){
setResult('json1', false);
}
}());
</script><div class="info">Create a JS object, convert to JSON string, convert back to object and compare.</div></div>
</td></tr>
<tr><th><h3>CSS3 Multiple backgrounds</h3><span class="links">[<a href="http://caniuse.com/multibackgrounds">Table</a>] [<a href="http://tests.caniuse.com/?feat=multibackgrounds&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="multibackgrounds0" class="auto pass"></div><script>setResult('multibackgrounds0', Modernizr.multiplebgs);</script><div class="info">Modernizr test for: "multiplebgs"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="multibackgrounds1" class="visual-square"></div><div class="square"><div style="background-repeat: repeat-x; background-image: url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png); background-position: 0 0, 0 5px, 0 10px, 0 15px, 0 20px, 0 25px; width:30px;height:30px;"></div></div><div class="info">background-repeat: repeat-x;
background-image: url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png), url(caniuse_files/green5x5.png);
background-position: 0 0, 0 5px, 0 10px, 0 15px, 0 20px, 0 25px;</div></div>
</td></tr>
<tr><th><h3>CSS3 Multiple column layout</h3><span class="links">[<a href="http://caniuse.com/multicolumn">Table</a>] [<a href="http://tests.caniuse.com/?feat=multicolumn&prefix=all">Single feat</a>]</span></th><td class="current pass"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="multicolumn0" class="auto pass"></div><script>setResult('multicolumn0', Modernizr.csscolumns);</script><div class="info">Modernizr test for: "csscolumns"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="multicolumn1" class="visual-square"></div><div class="square"><div style="-webkit-column-width: 15px; -webkit-column-gap: 0;-moz-column-width: 15px; -moz-column-gap: 0;-ms-column-width: 15px; -ms-column-gap: 0;-o-column-width: 15px; -o-column-gap: 0;column-width: 15px; column-gap: 0; width:30px;height:30px;background:red;">
<div style="inline-block;width:15px;height:30px;background:lime;"></div>
<div style="inline-block;width:15px;height:30px;background:lime;"></div>
</div>
</div><div class="info">column-width: 15px;
column-gap: 0;</div></div>
</td></tr>
<tr><th><h3>Web Storage - name/value pairs</h3><span class="links">[<a href="http://caniuse.com/namevalue-storage">Table</a>] [<a href="http://tests.caniuse.com/?feat=namevalue-storage&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="namevalue-storage0" class="auto pass"></div><script>setResult('namevalue-storage0', Modernizr.localstorage);</script><div class="info">Modernizr test for: "localstorage"</div></div>
<div class="test_wrap"><h3>Auto</h3><div id="namevalue-storage1" class="auto pass"></div><script>
(function() {
var result = false;
if(window.localStorage) {
try {
localStorage.setItem('foo', 'bar');
if(localStorage.getItem('foo') === 'bar'
&& localStorage['foo'] === 'bar'
&& localStorage.foo === 'bar'
) {
localStorage.removeItem('foo');
if(localStorage.getItem('foo') === null) {
result = true;
}
}
} catch(e) {}
}
setResult('namevalue-storage1', result);
})();
</script><div class="info">Test if getItem, setItem and removeItem work.</div></div>
</td></tr>
<tr><th><h3>Web Notifications</h3><span class="links">[<a href="http://caniuse.com/notifications">Table</a>] [<a href="http://tests.caniuse.com/?feat=notifications&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="notifications0" class="auto pass"></div><script>
setResult('notifications0',
"webkitNotifications" in window
|| "mozNotifications" in window
|| "oNotifications" in window
|| "msNotifications" in window
|| "khtmlNotifications" in window
|| "notifications" in window
);
</script></div>
</td></tr>
<tr><th><h3>Offline web applications</h3><span class="links">[<a href="http://caniuse.com/offline-apps">Table</a>] [<a href="http://tests.caniuse.com/?feat=offline-apps&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="offline-apps0" class="auto pass"></div><script>setResult('offline-apps0', Modernizr.applicationcache);</script><div class="info">Modernizr test for: "applicationcache"</div></div>
</td></tr>
<tr><th><h3>querySelector/querySelectorAll</h3><span class="links">[<a href="http://caniuse.com/queryselector">Table</a>] [<a href="http://tests.caniuse.com/?feat=queryselector&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="queryselector0" class="auto pass"></div><script>
setResult('queryselector0', !!document.querySelectorAll && !!document.querySelector)
</script></div>
<div class="test_wrap"><h3>Auto</h3><div id="queryselector1" class="auto pass"></div> <div id="queryselector1test">
<div data-foo="queryselector1"></div>
<div id="queryselector1target"></div>
<div class="altqueryselector1test"></div>
</div>
<script>
(function() {
if(document.querySelector) {
var elem = document.querySelector('[data-foo=queryselector1] + *');
var target = document.getElementById('queryselector1target');
setResult('queryselector1', elem === target);
}
}());
</script><div class="info">querySelector test on selector '[data-foo=bar] + *'</div></div>
<div class="test_wrap"><h3>Auto</h3><div id="queryselector2" class="auto pass"></div> <div id="queryselector2test">
<div data-foo="queryselector2"></div>
<div id="queryselector2target"></div>
<div class="altqueryselector2test"></div>
</div>
<script>
(function() {
if(document.querySelector) {
var elem = document.querySelector('[data-foo=queryselector2] + *');
var target = document.getElementById('queryselector2target');
setResult('queryselector2', elem === target);
}
}());
</script><div class="info">querySelectorAll test on selector '[data-foo=bar] + *'</div></div>
</td></tr>
<tr><th><h3>SVG (basic support)</h3><span class="links">[<a href="http://caniuse.com/svg">Table</a>] [<a href="http://tests.caniuse.com/?feat=svg&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="svg0" class="auto pass"></div><script>setResult('svg0', Modernizr.svg);</script><div class="info">Modernizr test for: "svg"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="svg1" class="visual-square"></div><div class="square"><object type="image/svg+xml" width="30" height="30" data="./caniuse_files/svg-img.svg" style="overflow:visible"> SVG fail
</object></div><div class="info">SVG in <object></div></div>
</td></tr>
<tr><th><h3>SVG effects for HTML</h3><span class="links">[<a href="http://caniuse.com/svg-html">Table</a>] [<a href="http://tests.caniuse.com/?feat=svg-html&prefix=all">Single feat</a>]</span></th><td class="current partial"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="svg-html1" class="visual"></div><div class="vis_test"> <object type="image/svg+xml" width="60" height="30" data="http://tests.caniuse.com/blur-html.svg"> SVG fail
</object></div><div class="vis_ref"><img src="./caniuse_files/svg-html-blur.png"></div><p class="condition">Text must appear blurry</p><div class="info">SVG with feGaussianBlur filter on foreignObject</div></div>
</td></tr>
<tr><th><h3>Inline SVG in HTML5</h3><span class="links">[<a href="http://caniuse.com/svg-html5">Table</a>] [<a href="http://tests.caniuse.com/?feat=svg-html5&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="svg-html50" class="auto pass"></div><script>setResult('svg-html50', Modernizr.inlinesvg);</script><div class="info">Modernizr test for: "inlinesvg"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="svg-html51" class="visual-square"></div><div class="square"><svg width="30" height="30" xmlns="http://www.w3.org/2000/svg" style="background:red;">
<rect height="30" width="30" y="0" x="0" fill="#00ff00"></rect>
</svg>
</div></div>
</td></tr>
<tr><th><h3>SVG SMIL animation</h3><span class="links">[<a href="http://caniuse.com/svg-smil">Table</a>] [<a href="http://tests.caniuse.com/?feat=svg-smil&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="svg-smil0" class="auto pass"></div><script>setResult('svg-smil0', Modernizr.smil);</script><div class="info">Modernizr test for: "smil"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="svg-smil1" class="visual-square"></div><div class="square"><object type="image/svg+xml" width="30" height="30" data="http://tests.caniuse.com/svg-animate.svg" style="overflow:visible"> SVG fail
</object></div><div class="info">SVG with animate element inside a rect</div></div>
</td></tr>
<tr><th><h3>Touch events</h3><span class="links">[<a href="http://caniuse.com/touch">Table</a>] [<a href="http://tests.caniuse.com/?feat=touch&prefix=all">Single feat</a>]</span></th><td class="current unknown"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="touch0" class="auto fail"></div><script>setResult('touch0', Modernizr.touch);</script><div class="info">Modernizr test for: "touch"</div></div>
</td></tr>
<tr><th><h3>CSS3 Transforms</h3><span class="links">[<a href="http://caniuse.com/transforms2d">Table</a>] [<a href="http://tests.caniuse.com/?feat=transforms2d&prefix=all">Single feat</a>]</span></th><td class="current pass"> <span>-pre-</span></td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="transforms2d0" class="auto pass"></div><script>setResult('transforms2d0', Modernizr.csstransforms);</script><div class="info">Modernizr test for: "csstransforms"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="transforms2d1" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;background:red;overflow:hidden">
<div style="background:lime;width:30px;height:30px;position:relative;left:-30px;-webkit-transform: translate(30px);-moz-transform: translate(30px);-ms-transform: translate(30px);-o-transform: translate(30px);transform: translate(30px); "></div>
</div>
</div><div class="info">transform: translate(30px);</div></div>
</td></tr>
<tr><th><h3>CSS3 3D Transforms</h3><span class="links">[<a href="http://caniuse.com/transforms3d">Table</a>] [<a href="http://tests.caniuse.com/?feat=transforms3d&prefix=all">Single feat</a>]</span></th><td class="current unknown"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="transforms3d0" class="auto pass"></div><script>setResult('transforms3d0', Modernizr.csstransforms3d);</script><div class="info">Modernizr test for: "csstransforms3d"</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="transforms3d1" class="visual-square"></div><div class="square"><style>
#transforms3d1container {
background: red;
width: 30px;
height: 30px;
overflow: hidden;
-webkit-perspective: 600;
-webkit-perspective-origin: 0 200px;
-moz-perspective: 600;
-moz-perspective-origin: 0 200px;
-ms-perspective: 600;
-ms-perspective-origin: 0 200px;
-o-perspective: 600;
-o-perspective-origin: 0 200px;
perspective: 600;
perspective-origin: 0 200px;
}
#transforms3d1test {
width:400px; height:100px;
background: lime;
position: relative;
top: 30px;
-webkit-transform: translate3d(-234px, 0, 0) rotate3d(0, 1, 0, -70deg);
-moz-transform: translate3d(-234px, 0, 0) rotate3d(0, 1, 0, -70deg);
-ms-transform: translate3d(-234px, 0, 0) rotate3d(0, 1, 0, -70deg);
-o-transform: translate3d(-234px, 0, 0) rotate3d(0, 1, 0, -70deg);
transform: translate3d(-234px, 0, 0) rotate3d(0, 1, 0, -70deg);
}
</style>
<div id="transforms3d1container">
<div id="transforms3d1test"></div>
</div></div><div class="info">Parent:
perspective: 600;
perspective-origin: 0 200px;
Child:
transform: translate3d(-234px, 0, 0) rotate3d(0, 1, 0, -70deg);</div></div>
</td></tr>
<tr><th><h3>Video element</h3><span class="links">[<a href="http://caniuse.com/video">Table</a>] [<a href="http://tests.caniuse.com/?feat=video&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="video0" class="auto pass"></div><script>
setResult('video0', !!document.createElement('video').canPlayType);
</script></div>
<div class="test_wrap"><h3>Interact</h3><div id="video1" class="interact"></div><video width="160" height="120" controls="">
<source src="video.mp4" type="video/mp4">
<source src="video.ogv" type="video/ogv">
<source src="video.webm" type="video/webm">
</video><div class="info">Video with controls and all three formats available.</div></div>
<div class="test_wrap"><h3>Interact</h3><div id="video2" class="interact"></div><video width="160" height="120" controls="">
<source src="mimevid.php?type=.mp4" type="video/mp4">
<source src="mimevid.php?type=.ogv" type="video/ogg">
<source src="mimevid.php?type=.webm" type="video/webm">
</video><div class="info">Video with controls and all three formats available (with MIME).</div></div>
</td></tr>
<tr><th><h3>Web Sockets</h3><span class="links">[<a href="http://caniuse.com/websockets">Table</a>] [<a href="http://tests.caniuse.com/?feat=websockets&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="websockets0" class="auto pass"></div><script>setResult('websockets0', Modernizr.websockets);</script><div class="info">Modernizr test for: "websockets"</div></div>
</td></tr>
<tr><th><h3>Web Workers</h3><span class="links">[<a href="http://caniuse.com/webworkers">Table</a>] [<a href="http://tests.caniuse.com/?feat=webworkers&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="webworkers0" class="auto pass"></div><script>setResult('webworkers0', Modernizr.webworkers);</script><div class="info">Modernizr test for: "webworkers"</div></div>
<div class="test_wrap"><h3>Auto</h3><div id="webworkers1" class="auto pass"></div><script>
(function() {
try {
var w = new Worker('worker.js');
w.onmessage = function (event) {
var success = (event.data && event.data === 'worker works');
setResult('webworkers1', success);
}
w.postMessage('');
} catch(e) {
setResult('webworkers1', false);
}
}());
</script><div class="info">Create a new Worker using new Worker('worker.js');
Then, test postMessage and onmessage event.</div></div>
</td></tr>
<tr><th><h3>Cross-document messaging</h3><span class="links">[<a href="http://caniuse.com/x-doc-messaging">Table</a>] [<a href="http://tests.caniuse.com/?feat=x-doc-messaging&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto (m)</h3><div id="x-doc-messaging0" class="auto pass"></div><script>setResult('x-doc-messaging0', Modernizr.postmessage);</script><div class="info">Modernizr test for: "postmessage"</div></div>
</td></tr>
<tr><th><h3>XMLHttpRequest 2</h3><span class="links">[<a href="http://caniuse.com/xhr2">Table</a>] [<a href="http://tests.caniuse.com/?feat=xhr2&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="xhr20" class="auto pass"></div><script>
var progEv = !!(window.ProgressEvent);
var fdata = !!(window.FormData);
setResult('xhr20', (progEv && fdata));
</script></div>
</td></tr>
<tr><th><h3>XHTML served as application/xhtml+xml</h3><span class="links">[<a href="http://caniuse.com/xhtml">Table</a>] [<a href="http://tests.caniuse.com/?feat=xhtml&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Auto</h3><div id="xhtml0" class="auto pass"></div><iframe src="./caniuse_files/xhtml.html" width="15" height="15" style="display:none"></iframe></div>
</td></tr>
<tr><th><h3>CSS Generated content</h3><span class="links">[<a href="http://caniuse.com/css-gencontent">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-gencontent&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="css-gencontent0" class="visual"></div><div class="vis_test"><style>
#gencontent:before {
content: 'A';
}
#gencontent:after {
content: 'Z';
}
</style>
<span id="gencontent">-</span></div><div class="vis_ref"><img src="./caniuse_files/before-after.png"></div><div class="info">Element with CSS:
#gencontent:before {
content: 'A';
}
#gencontent:after {
content: 'Z';
}</div></div>
</td></tr>
<tr><th><h3>CSS Table display</h3><span class="links">[<a href="http://caniuse.com/css-table">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-table&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="css-table0" class="visual"></div><div class="vis_test"><style>
#table-test { display: table; }
#table-test .table-tr { display: table-row; }
#table-test .table-td { display: table-cell;border:1px solid; }
</style>
<div style="display:inline-block;vertical-align:middle">
<div id="table-test">
<div class="table-tr">
<div class="table-td">topleft</div>
<div class="table-td">topright</div>
</div>
<div class="table-tr">
<div class="table-td">bottomleft</div>
<div class="table-td">bottomright</div>
</div>
</div>
</div></div><div class="vis_ref"><img src="./caniuse_files/table.png"></div><p class="condition">Should be 2x2 table</p></div>
</td></tr>
<tr><th><h3>HTML5 form features</h3><span class="links">[<a href="http://caniuse.com/forms">Table</a>] [<a href="http://tests.caniuse.com/?feat=forms&prefix=all">Single feat</a>]</span></th><td class="current partial"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="forms0" class="visual"></div><div class="vis_test"><input type="date"><br><input type="time"><br><input type="range"><br><input type="number"></div><p class="condition">date/time/range/number widgets</p></div>
</td></tr>
<tr><th><h3>MathML</h3><span class="links">[<a href="http://caniuse.com/mathml">Table</a>] [<a href="http://tests.caniuse.com/?feat=mathml&prefix=all">Single feat</a>]</span></th><td class="current unknown"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="mathml0" class="visual"></div><div class="vis_test"><iframe src="./caniuse_files/mathml.html" width="210" height="110" style="border:0;"></iframe></div><div class="vis_ref"><img src="./caniuse_files/mathml_ref.png"></div></div>
</td></tr>
<tr><th><h3>PNG alpha transparency</h3><span class="links">[<a href="http://caniuse.com/png-alpha">Table</a>] [<a href="http://tests.caniuse.com/?feat=png-alpha&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="png-alpha0" class="visual"></div><div class="vis_test"><img src="./caniuse_files/alpha.png" style="background-color:lime"></div><div class="vis_ref"><img src="./caniuse_files/png_alpha_result.png"></div></div>
</td></tr>
<tr><th><h3>Ruby annotation</h3><span class="links">[<a href="http://caniuse.com/ruby">Table</a>] [<a href="http://tests.caniuse.com/?feat=ruby&prefix=all">Single feat</a>]</span></th><td class="current partial"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="ruby0" class="visual"></div><div class="vis_test">
<div style="display:inline-block;vertical-align:middle">
<ruby>(bottom1)<rt>(top1)</rt>(bottom2)<rt>(top2)</rt></ruby>
</div></div><div class="vis_ref"><img src="./caniuse_files/ruby.png"></div><p class="condition">Elements should be stacked on top of each other</p></div>
</td></tr>
<tr><th><h3>SVG filters</h3><span class="links">[<a href="http://caniuse.com/svg-filters">Table</a>] [<a href="http://tests.caniuse.com/?feat=svg-filters&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="svg-filters0" class="visual"></div><div class="vis_test"><object data="http://tests.caniuse.com/blur.svg" type="image/svg+xml" height="70" width="70">
object SVG not supported
</object>
</div><div class="vis_ref"><img src="./caniuse_files/svg_blur.png"></div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="svg-filters1" class="visual-square"></div><div class="square"><object type="image/svg+xml" width="30" height="30" data="http://tests.caniuse.com/fecolormatrix.svg" style="overflow:visible"> SVG fail
</object></div><p class="condition">Must be green (not lime)</p><div class="info">SVG with <feColorMatrix type="hueRotate" values="120"/></div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="svg-filters2" class="visual-square"></div><div class="square"><object type="image/svg+xml" width="30" height="30" data="http://tests.caniuse.com/feflood.svg" style="overflow:visible"> SVG fail
</object></div><div class="info">SVG with <feFlood flood-color="lime"/></div></div>
</td></tr>
<tr><th><h3>CSS3 Word-wrap</h3><span class="links">[<a href="http://caniuse.com/wordwrap">Table</a>] [<a href="http://tests.caniuse.com/?feat=wordwrap&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual</h3><div id="wordwrap0" class="visual"></div><div class="vis_test"><style>
#wordwraptest {
display: inline-block;
width: 30px;
word-wrap: break-word;
}
</style>
<div id="wordwraptest">abcdefghijklmnopqrstuvwxyz</div>
</div><p class="condition">Text should wrap</p></div>
<div class="test_wrap"><h3>Visual</h3><div id="wordwrap1" class="visual"></div><div class="vis_test"><style>
#wordwraptest2 {
display: inline-block;
width: 30px;
word-wrap: normal;
}
</style>
<div id="wordwraptest2">abcdefghijklmnopqrstuvwxyz</div>
</div><p class="condition">Text should overflow box</p></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="wordwrap2" class="visual-square"></div><div class="square"><div style="width:30px;height:30px;background:red;overflow:hidden">
<div style="color:lime;font-size:10px;line-height:10px;word-wrap:break-word;background:lime;">abcdefghijklmnop</div>
</div>
</div><div class="info">word-wrap: break-word;</div></div>
</td></tr>
<tr><th><h3>calc() as CSS unit value</h3><span class="links">[<a href="http://caniuse.com/calc">Table</a>] [<a href="http://tests.caniuse.com/?feat=calc&prefix=all">Single feat</a>]</span></th><td class="current unknown"> </td><td>
<div class="test_wrap"><h3>Visual-square</h3><div id="calc0" class="visual-square"></div><div class="square"><style>
#calc0test {
width: 0px;
width: -webkit-calc(10px + 20px);
width: -moz-calc(10px + 20px);
width: -ms-calc(10px + 20px);
width: -o-calc(10px + 20px);
width: calc(10px + 20px);
height: 30px;
background: lime;
}
</style>
<div id="calc0test"></div>
</div><div class="info">width: calc(10px + 20px);</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="calc2" class="visual-square"></div><div class="square"><style>
#calc2test {
height:-webkit-calc(60px - 100%); width:-webkit-calc((100% / 2) + 15px - 0.5em); border-right:-webkit-calc(0.5em) solid lime;
height:-moz-calc(60px - 100%); width:-moz-calc((100% / 2) + 15px - 0.5em); border-right:-moz-calc(0.5em) solid lime;
height:-ms-calc(60px - 100%); width:-ms-calc((100% / 2) + 15px - 0.5em); border-right:-ms-calc(0.5em) solid lime;
height:-o-calc(60px - 100%); width:-o-calc((100% / 2) + 15px - 0.5em); border-right:-o-calc(0.5em) solid lime;
height:calc(60px - 100%); width:calc((100% / 2) + 15px - 0.5em); border-right:calc(0.5em) solid lime;
background: lime;
}
</style>
<div id="calc2test"></div>
</div><div class="info">height: calc(60px - 100%);
width: calc((100% / 2) + 15px - 0.5em);
border-right: calc(0.5em) solid lime;</div></div>
</td></tr>
<tr><th><h3>CSS Grid Layout</h3><span class="links">[<a href="http://caniuse.com/css-grid">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-grid&prefix=all">Single feat</a>]</span></th><td class="current unknown"> </td><td>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-grid0" class="visual-square"></div><div class="square"><style>
#css-grid0grid {
display: -webkit-grid; display: -moz-grid; display: -ms-grid; display: -o-grid; display: grid;
-webkit-grid-columns: 15px 1fr; -moz-grid-columns: 15px 1fr; -ms-grid-columns: 15px 1fr; -o-grid-columns: 15px 1fr; grid-columns: 15px 1fr;
-webkit-grid-rows: 15px 15px; -moz-grid-rows: 15px 15px; -ms-grid-rows: 15px 15px; -o-grid-rows: 15px 15px; grid-rows: 15px 15px;
}
#css-grid0grid > div {
background: lime;
}
#css-grid0a {
-webkit-grid-row: 1; -moz-grid-row: 1; -ms-grid-row: 1; -o-grid-row: 1; grid-row: 1;
-webkit-grid-column: 1; -moz-grid-column: 1; -ms-grid-column: 1; -o-grid-column: 1; grid-column: 1;
}
#css-grid0b {
-webkit-grid-row: 1; -moz-grid-row: 1; -ms-grid-row: 1; -o-grid-row: 1; grid-row: 1;
-webkit-grid-column: 2; -moz-grid-column: 2; -ms-grid-column: 2; -o-grid-column: 2; grid-column: 2;
}
#css-grid0c {
-webkit-grid-row: 2; -moz-grid-row: 2; -ms-grid-row: 2; -o-grid-row: 2; grid-row: 2;
-webkit-grid-column: 1; -moz-grid-column: 1; -ms-grid-column: 1; -o-grid-column: 1; grid-column: 1;
-webkit-grid-column-span: 2; -moz-grid-column-span: 2; -ms-grid-column-span: 2; -o-grid-column-span: 2; grid-column-span: 2;
}
</style>
<div id="css-grid0grid">
<div id="css-grid0a"></div>
<div id="css-grid0b"></div>
<div id="css-grid0c"></div>
</div>
</div><div class="info">Grid with two columns, two rows and three elements taking up space.</div></div>
</td></tr>
<tr><th><h3>CSS3 Media Queries</h3><span class="links">[<a href="http://caniuse.com/css-mediaqueries">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-mediaqueries&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-mediaqueries0" class="visual-square"></div><div class="square"><style>
#mediaq1,#mediaq2,#mediaq3,#mediaq4 {
background: red;
float: left;
width: 15px;
height: 15px;
}
#mediaq3 {
clear: left;
}
@media all and (min-width: 0px) {
#mediaq1, #mediaq3 { background: lime; }
}
@media all and (max-width: 999999px) {
#mediaq2, #mediaq4 { background: lime; }
}
@media all and (min-width: 999999px) {
#mediaq3 { background: red; }
}
@media all and (max-width: 0px) {
#mediaq4 { background: red; }
}
</style>
<div id="mediaq1"></div>
<div id="mediaq2"></div>
<div id="mediaq3"></div>
<div id="mediaq4"></div></div></div>
</td></tr>
<tr><th><h3>CSS 2.1 selectors</h3><span class="links">[<a href="http://caniuse.com/css-sel2">Table</a>] [<a href="http://tests.caniuse.com/?feat=css-sel2&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-sel20" class="visual-square"></div><div class="square"><style>
#css-sel20test div {
width: 30px;
height: 30px;
background: red;
}
#css-sel20test > div {
background: lime;
}
</style>
<div id="css-sel20test">
<div></div>
</div>
</div><div class="info">Test for child ( > )selector</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-sel21" class="visual-square"></div><div class="square"><style>
#css-sel21test + div { background: lime; width:30px; height:30px;}
</style>
<div id="css-sel21test"></div>
<div></div>
</div><div class="info">Adjacent sibling selector test ( + )</div></div>
<div class="test_wrap"><h3>Visual-square</h3><div id="css-sel22" class="visual-square"></div><div class="square"><style>
#css-sel22test[role="none"] { background: lime; width:30px; height:30px;}
</style>
<div id="css-sel22test" role="none"></div></div><div class="info">Attribute selector ( [role="none"] )</div></div>
</td></tr>
<tr><th><h3>CSS3 Box-sizing</h3><span class="links">[<a href="http://caniuse.com/css3-boxsizing">Table</a>] [<a href="http://tests.caniuse.com/?feat=css3-boxsizing&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual-square</h3><div id="css3-boxsizing0" class="visual-square"></div><div class="square"><style>
#boxsizetest {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
background: red;
border-left: 30px solid lime;
display: inline-block;
height: 30px;
width: 30px;
}
</style>
<div id="boxsizetest"></div>
</div></div>
</td></tr>
<tr><th><h3>Data URLs</h3><span class="links">[<a href="http://caniuse.com/datauri">Table</a>] [<a href="http://tests.caniuse.com/?feat=datauri&prefix=all">Single feat</a>]</span></th><td class="current pass"> </td><td>
<div class="test_wrap"><h3>Visual-square</h3><div id="datauri0" class="visual-square"></div><div class="square"><div style="background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRFAP8AAAAAbwN%2BQwAAAAxJREFUeNpiYAAIMAAAAgABT21Z4QAAAABJRU5ErkJggg%3D%3D');width:30px;height:30px;"></div></div><div class="info">div with data URL as background image</div></div>