Html5多浏览器支持情况

本文探讨了主流浏览器如Chrome、Firefox、IE、Opera和Safari对HTML5的支持情况,通过html5test.com的测试结果,展示各浏览器在语义、设备访问、连接性、性能与集成、多媒体、3D图形与效果、离线存储和其他方面的得分详情。例如,360浏览器在Windows 7上运行的Chrome 31得分442分,满分为555分。
摘要由CSDN通过智能技术生成

当前主流浏览器对HTML5的支持情况如下表所示(http://html5test.com/results/desktop.html):


满分:555分

 ChromeFirefoxInternet ExplorerOperaSafari
Upcoming  Edge 402  
Current43 52638 46711 33629 5198.0 396
Older42 52337 44910 29728 5197.0 352
 41 52336 4499 11327 5126.0 326
 40 51135 4498 3326 4975.1 250
 39 50134 449 24 485 
 38 49933 444 23 462 
 37 49432 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?

Save results Compare to...

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
hidden attribute
Yes 
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 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值