Comparison of layout engines (HTML5 canvas)

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The following tables compare support for the drawing APIs of the Canvas element, a feature of HTML5. These tables compare native support by web browsers, without any plugins, add-ons or ECMAScript workarounds.

Explanation of the tables[edit]

Engine nomenclature[edit]

Rather than the names of web browsers and HTML to PDF converters, the names of the underlying engines are used. Some of the software and online converters that use the various engines are listed below.

Layout engine Release version Preview version Used by
Amaya 11.4.7[1] N/A No longer developed; Amaya
Blink 537.36 source code[note 1] Chromium/Chrome (28+), Opera (15+), Sleipnir, Vivaldi, Yandex, Liebao and Samsung Browser[citation needed]
EdgeHTML 14.14393[2] N/A Microsoft Edge, Universal Windows Platform (UWP) JavaScript apps
Gecko
Standard 53.0.2 / May 5, 2017; 7 days ago (2017-05-05)[3]
ESR 1 52.1.1 / May 5, 2017; 7 days ago (2017-05-05)[4]
ESR 2 45.9.0 / April 19, 2017; 23 days ago (2017-04-19)[5]
Beta 54.0beta / April 21, 2017; 21 days ago (2017-04-21)[6][7] semiweekly release
Developer Edition 54.0a2 / March 10, 2017; 2 months ago (2017-03-10)[8][9] daily release
Nightly 55.0a1 / March 6, 2017; 2 months ago (2017-03-06)[10][11] daily release
All Mozilla software, including Firefox; SeaMonkey and Galeon; Camino; K-Meleon; Flock (up to 2.x); Debian IceWeasel; GNU IceCat (formerly GNU IceWeasel); Cyberfox; Icedove, Iceape and Iceowl; Firefox for Android ("Fennec"). Also used by the Maple platform in 2010 and 2011 Samsung "SmartTV" devices which are based on the build used in Firefox 2.5. The Nokia Asha platform also uses Gecko for web apps rendering.
Goanna 27.3.0 (April 27, 2017; 15 days ago (2017-04-27)[12]) [±] Pale Moon and FossaMail
KHTML 4.12.3[13] N/A Konqueror[note 2]
Martha  ?  ? PDFreactor, Nimbudocs Editor and edit-on NG. Uses the Apache Batik library for SVG rendering.
Presto 2.12.388 N/A No longer developed; Opera and Opera Mobile use Blink now; Nintendo DS & DSi Browser; Internet Channel
Prince 11 N/A HTML to PDF converters: Prince (previously called PrinceXML), DocRaptor. The information in the Prince columns is also true of Prince for Books, a related layout engine.
Tasman (IE 5.2.3 for Mac) N/A No longer developed (aborted in 2003); Internet Explorer 5+ for Mac OS X
Trident 7.0 (IE 11) N/A Internet Explorer and other Internet Explorer shells like Maxthon (Microsoft Windows operating systems only), Windows Phone 8
WebKit 534.20 nightly build[note 3] Tizen (both OS and browser), Safari (both desktop and mobile), Google Chrome (before 28), Maxthon 3, Shiira, iCab 4, OmniWeb 5.5+, Web, Adobe AIR, Midori, surf, Adobe Dreamweaver CS4 and CS5, Android browser, Palm webOS browser, Symbian S60 browser, OWB, Steam, Rekonq, Arora, Flock (version 3+), RockMelt, Dolphin Browser, Konqueror[note 2]. Used by the LG Smart TV platform to enable web content on TVs. HTML to PDF converters: wkhtmltopdf, PhantomJS, Pdfcrowd[14], http://www.online-convert.com/[15].
  1. ^ "chromium / chromium/blink". chromium.googlesource.com. Google. Retrieved 2014-05-27. 
  2. ^ a b In Konqueror, the user can switch the used layout engine.
  3. ^ "WebKit Nightly Builds". webkit.org. Retrieved 2014-05-27. 


Values[edit]

Values indicate the level of support in the most recent version of the layout engine, or (if a version number is given) in the specified version. Version numbers without any other value indicate the version at which the layout engine first fully supported the feature.

Value Meaning
Yes Indicates that the layout engine fully supports this property/element when valid values are used.
No Indicates that the property/element is completely ignored.
Partial Indicates that the property/element is understood, but that not all values are supported. Supported values are implemented correctly.
Incorrect Indicates that the property/element is understood, but that it is not implemented correctly in all cases.
Experimental Indicates that the property/element is understood, but supported under an alternate name. May be incomplete or buggy.
Dropped Indicates that the property/element is no longer supported.
Nightly build Indicates that the property/element is supported to some extent in an experimental/nightly build. Future support is expected.
Depends Indicates that the property/element is supported only on certain platforms, or if certain settings are configured.

Canvas functions[edit]

Trident Gecko WebKit Presto
getContext 5.0 1.8 Yes 2.0
toDataURL 1.8[g 1] Yes[w 1] 2.1[note 1]

Supported contexts[edit]

Trident Gecko WebKit Presto
2d 5.0 1.9.1 Partial 2.6
WebGL 7.0[t 1] Depends[g 2] Depends[w 2] 2.9.220[p 1]

Canvas Rendering Context 2D[edit]

Trident[t 2] Gecko[g 3] WebKit[w 3] Presto[p 2][p 3]
The canvas state
save 5.0 1.8 Yes 2.0
restore
Transformations
scale 5.0 1.8 Yes 2.0
rotate
translate
transform 2.6[note 2][p 4][p 5][p 6]
setTransform 2.6[note 2]
Compositing
globalAlpha 5.0 1.8 Yes 2.0
globalCompositeOperation
Colors and styles
strokeStyle 5.0 1.8 Yes 2.0
fillStyle
createLinearGradient
createRadialGradient
createPattern
Line styles
lineWidth 5.0 1.8 Yes 2.0
lineCap
lineJoin
miterLimit
Shadows
shadowOffsetX 5.0 1.9.1[g 4] Yes 2.4[note 3]
shadowOffsetY
shadowBlur
shadowColor
Simple shapes
clearRect 5.0 1.8 Yes 2.0
fillRect
strokeRect
Complex shapes
beginPath 5.0 1.8 Yes 2.0
closePath
moveTo
lineTo
quadraticCurveTo 1.8.1[note 4]
bezierCurveTo 1.8
arcTo 1.8.1[g 5]
rect 1.8
arc
fill
stroke
clip
isPointInPath
Focus management
drawFocusRing No 28.0[g 6] No No
Text
font 5.0 1.9.1[note 5] Yes No
textAlign 2.6
textBaseline
fillText
strokeText
measureText
Images
drawImage 5.0 1.8 Yes 2.0
createImageData 1.9.1[g 8][g 9] 2.7[p 7]
getImageData 1.9[g 9] 2.6[note 2]
putImageData 2.0[g 10][g 9]


Notes[edit]

  1. ^ Presto 2.0 had partial support for this property.
  2. ^ a b c Opera 9.5(Presto 2.1) support table claims support for this, but support tables for Presto 2.1.1 up to 2.5 indicate that this property is not supported.
  3. ^ Prior to version 2.4, Presto only had partial support for this property.
  4. ^ Incorrect in Gecko 1.8
  5. ^ Gecko had experimental support in version 1.9, with different names.[g 7]

References[edit]

Trident references[edit]

Gecko references[edit]

Webkit references[edit]

Presto references[edit]

Other references[edit]

  1. ^ Amaya Binary Releases, Most recent download link in stable
  2. ^ Introducing EdgeHTML 14 with the Windows 10 Anniversary Update
  3. ^ "Firefox — Notes (53.0.2) — Mozilla". mozilla.org. 2017-05-05. Retrieved 2017-05-05. 
  4. ^ "Firefox Extended Support Release — Notes (52.1.1) — Mozilla". mozilla.org. 2017-05-05. Retrieved 2017-05-05. 
  5. ^ "Firefox Extended Support Release — Notes (45.9.0) — Mozilla". mozilla.org. 2017-04-19. Retrieved 2017-04-19. 
  6. ^ "Firefox — Beta Notes (54.0beta) — Mozilla". 2017-04-21. Retrieved 2017-04-21. 
  7. ^ "Mozilla Firefox Web Browser — Download Firefox Beta in your language — Mozilla". Retrieved 2016-07-02. 
  8. ^ "Firefox — Aurora Notes (54.0a2) — Mozilla". 2017-03-10. Retrieved 2017-03-20. 
  9. ^ "Mozilla Firefox Web Browser — Download Developer Edition in your language — Mozilla". Retrieved 2017-01-27. 
  10. ^ "Firefox - Notes (55.0a1) — Mozilla". 2017-04-24. Retrieved 2017-04-24. 
  11. ^ "Mozilla Firefox Web Browser — Download Firefox Nightly in your language — Mozilla". Retrieved 2017-01-29. 
  12. ^ "Pale Moon Release Notes". Pale Moon. 2017-04-27. Retrieved 2017-04-29. 
  13. ^ Download for kdelibs, Most recent download link in stable
  14. ^ Pdfcrowd FAQ, “Pdfcrowd is built around Webkit.”
  15. ^ ‘Producer’ metadata in the resulting pdf., https://www.coolutils.com/Online/HTML-Converter/ Free Online HTML Converter around Webkit

External links[edit]