Html5多瀏覽器支援情況
阿新 • • 發佈:2019-02-01
當前主流瀏覽器對HTML5的支援情況如下表所示(http://html5test.com/results/desktop.html):
滿分:555分
Chrome | Firefox | Internet Explorer | Opera | Safari | |
---|---|---|---|---|---|
Upcoming | Edge 402 | ||||
Current | 43 526 | 38 467 | 11 336 | 29 519 | 8.0 396 |
Older | 42 523 | 37 449 | 10 297 | 28 519 | 7.0 352 |
41 523 | 36 449 | 9 113 | 27 512 | 6.0 326 | |
40 511 | 35 449 | 8 33 | 26 497 | 5.1 250 | |
39 501 | 34 |
24 485 | |||
38 499 | 33 444 | 23 462 | |||
37 494 | 32 444 | 22 473 |
下面內容是各瀏覽器對HTML5標籤支援的詳細情況(由於篇幅所限只列出檢視地址):
Chrome:http://html5test.com/compare/browser/chrome-43.html
Firefox:http://html5test.com/compare/browser/firefox-38.html
IE:http://html5test.com/compare/browser/ie-11.html
Opera:http://html5test.com/compare/browser/opera-29.html
Safari:http://html5test.com/compare/browser/safari-8.0.html
使用360瀏覽器得出的分數及詳細情況:
YOUR BROWSER SCORES 442 OUT OF 555 POINTS
You are using Chrome 31 on Windows 7Correct?✔✘
semantics
Parsing rules 5 | |
---|---|
<!DOCTYPE html> triggers standards mode
|
Yes ✔ |
HTML5 tokenizer | Yes ✔ |
HTML5 tree building |
Yes ✔ |
HTML5 defines rules for embedding SVG and MathML inside a regular HTML document. The following tests only check if the browser is following the HTML5 parsing rules for inline SVG and MathML, not if the browser can actually understand and render it. | |
Parsing inline SVG | Yes ✔ |
Parsing inline MathML | Yes ✔ |
Elements 25/30 | |
---|---|
Embedding custom non-visible data | Yes ✔ |
New or modified elements | |
Global attributes or methods |
Forms 73/75 | |
---|---|
Field types | |
Fields | |
Forms |
Microdata 0 | |
---|---|
Microdata | No ✘ |
device access
Location and Orientation 20 | |
---|---|
Geolocation | Yes ✔ |
Device Orientation | Yes ✔ |
Device Motion | Yes ✔ |
Output 10 | |
---|---|
Full screen support | Prefixed ✔ |
Web Notifications | Yes ✔ |
Input 20/25 | |
---|---|
Access the webcam | Prefixed ✔ |
Gamepad control | Prefixed ✔ |
Pointer Events | No ✘ |
Pointer Lock support | Prefixed ✔ |
connectivity
Communication 33/35 | |
---|---|
Server-Sent Events | Yes ✔ |
Beacon | No ✘ |
XMLHttpRequest Level 2 | |
Upload files | Yes ✔ |
WebSocket | |
Basic socket communication | Yes ✔ |
ArrayBuffer and Blob support
|
Yes ✔ |
Peer To Peer 15/20 | |
---|---|
WebRTC 1.0 | Prefixed ✔ |
ObjectRTC API for WebRTC | No ✘ |
Data channel | Prefixed ✔ |
performance & integration
User interaction 13/20 | |
---|---|
Drag and drop | |
HTML editing | |
Clipboard | |
Clipboard API and events | No ✘ |
Spellcheck | |
spellcheck attribute
|
Yes ✔ |
Performance 25 | |
---|---|
Workers | |
Web Workers | Yes ✔ |
Shared Workers | Yes ✔ |
Security 28/40 | |
---|---|
Web Cryptography API | No ✘ |
Content Security Policy 1.0 | Yes ✔ |
Content Security Policy 1.1 | No ✘ |
Cross-Origin Resource Sharing | Yes ✔ |
Cross-document messaging | Yes ✔ |
Iframes | |
Sandboxed iframe
|
Yes ✔ |
Seamless iframe
|
No ✘ |
iframe with inline contents
|
Yes ✔ |
History and navigation 10 | |
---|---|
Session history | Yes ✔ |
multimedia
Video 31/35 | |
---|---|
video element
|
Yes ✔ |
Subtitles | Yes ✔ |
Audio track selection | No ✘ |
Video track selection | No ✘ |
Poster images | Yes ✔ |
Codec detection | Yes ✔ |
Advanced | |
DRM support | Prefixed ✔ |
Media Source extensions | Yes ✔ |
Codecs | |
MPEG-4 ASP support | No ✘ |
H.264 support | Yes ✔ |
Ogg Theora support | Yes ✔ |
WebM with VP8 support | Yes ✔ |
WebM with VP9 support | Yes ✔ |
Audio 28/30 | |
---|---|
audio element
|
Yes ✔ |
Loop audio | Yes ✔ |
Preload in the background | Yes ✔ |
Advanced | |
Web Audio API | Prefixed ✔ |
Speech Recognition | Prefixed ✔ |
Speech Synthesis | No ✘ |
Codecs | |
PCM audio support | Yes ✔ |
AAC support | Yes ✔ |
MP3 support | Yes ✔ |
Ogg Vorbis support | Yes ✔ |
Ogg Opus support | No ✘ |
WebM with Vorbis support | Yes ✔ |
WebM with Opus support | No ✘ |
3d, graphics & effects
Responsive images 0/15 | |
---|---|
picture element
|
No ✘ |
srcset attribute
|
No ✘ |
sizes attribute
|
No ✘ |
2D Graphics 21/25 | |
---|---|
Canvas 2D graphics | Yes ✔ |
Drawing primitives | |
Text support | Yes ✔ |
Path support | No ✘ |
Ellipse support | Yes ✔ |
Dashed line support | Yes ✔ |
System focus ring support | No ✘ |
Features | |
Hit testing support | No ✘ |
Blending modes | Yes ✔ |
Image export formats | |
PNG support | Yes ✔ |
JPEG support | Yes ✔ |
JPEG-XR support | No ✘ |
WebP support | Yes ✔ |
3D Graphics 0/20 | |
---|---|
WebGL 3D graphics | No ✘ |
Animation 5 | |
---|---|
window.requestAnimationFrame
|
Yes ✔ |
offline & storage
Web applications 13/25 | |
---|---|
Offline resources | |
Application Cache | Yes ✔ |
Service Workers | No ✘ |
Content and Scheme handlers | |
Custom scheme handlers | Yes ✔ |
Custom content handlers | No ✘ |
Custom search providers | Yes ✔ |
Storage 33/35 | |
---|---|
Key-value storage | |
Session Storage | Yes ✔ |
Local Storage | Yes ✔ |
Database storage | |
IndexedDB | Yes ✔ |
Objectstore Blob support
|
No ✘ |
Objectstore ArrayBuffer support
|
Yes ✔ |
The Web SQL Database specification is no longer being updated and has been replaced by IndexedDB. Because at least 3 vendors have shipped implementations of this specification we still include it in this test. | |
Web SQL Database | Yes ✔ |
Files 15 | |
---|---|
Reading files | |
Basic support for reading files | Yes ✔ |
Create a Blob from a file
|
Yes ✔ |
Create a Data URL from a Blob
|
Yes ✔ |
Create an ArrayBuffer from a Blob
|
Yes ✔ |
Create a Blob URL from a Blob
|
Yes ✔ |
Accessing the file system | |
FileSystem API | No ✘ |
The Directories and System API proposal has failed to gain traction among browser vendors and is only supported in some Webkit based browsers. No additional points are awarded for supporting this API. | |
File API: Directories and System | Prefixed ✔ |
Streams 0/5 | |
---|---|
Readable streams | No ✘ |
Writable streams | No ✘ |
other
Web Components 4/10 | |
---|---|
Custom elements | No ✘ |
Shadow DOM | Prefixed ✔ |
HTML templates | Yes ✔ |
HTML imports | No ✘ |
Other 15/20 | |
---|---|
Styling | |
Scoped style element
|
No ✘ |
Scripts | |
Asynchronous script execution | Yes ✔ |
Runtime script error reporting | Yes ✔ |
Script execution events | No ✘ |
Base64 encoding and decoding | Yes ✔ |
JSON encoding and decoding | Yes ✔ |
URL API | Yes ✔ |
Mutation Observer | Yes ✔ |
Promises | No ✘ |
Other | |
Page Visibility | Prefixed ✔ |
Text selection | Yes ✔ |
Scroll into view | Yes ✔ |