Version 26 (modified by Henry Haverinen, 12 years ago) (diff)


Feature documentation for QtWebKit 2.0

NOTE: This is page is incomplete and under construction. These tables will be moved to QtWebKit documentation.


QtWebKit 2.0 is a web content engine based on the Open Source WebKit engine.

High-level list of supported standards:

  • HTML 4.01, partial and experimental support for upcoming HTML 5
  • XHTML 1.0
  • CSS 2.1 and partial and experimental support for upcoming CSS3
  • ECMAScript 3 (JavaScript)
  • DOM Level 2
  • AJAX technologies, including XMLHTTPRequest
  • XHTML / MP support

As a general indicator of web compliance, QtWebKit 2.0 passes the Acid 2 and Acid 3 tests.

QtWebKit has a C++ API that allows Qt applications to embed web content, and to examine and manipulate the web content. The QtWebKit C++ API is extensively documented in the QtWebKit documentation. The C++ API documentation for QtWebKit 2.0 is included in Qt 4.7 documentation, available at

QtWebKit 2.0 is included in Qt 4.7. It can also be used with Qt 4.6 or Qt 4.5, however these cases are not covered by commercial support from Nokia. Qt 4.5 support is community driven and not verified by Nokia.

Terms used in this documentation

This documentation uses the following classification for the levels of support:

  • Not implemented: implementation for the feature does not exist or is so incomplete that even validation and experimentation is not recommended
  • Technology preview: the implementation of the feature is available for experimentation and validation, but not recommended for production use. The implementation may be incomplete and there may be known problems.
  • Experimental: the implementation of the feature can be used in production applications with the caveat that the API, standard or the implementation may be still change in future releases, or there may be some gaps or limitations in the implementation.
  • Supported: the feature is fully ready for production applications. The implementation has been verified, and we don't expect changes in the API or standard.

What's new in QtWebKit 2.0

The highlights of the QtWebKit 2.0 release are listed here

  • Increased focus on performance through new performance benchmarks and benchmarking tools
  • Increased focus on quality e.g. through improved automatic test coverage
  • Tiling support in QGraphicsWebView, for improved scrolling and zooming performance
  • Improvements in the NPAPI support (ongoing)
  • Improvements in the native look and feel on Maemo 5
  • Technology preview: Support for CSS View Modes media feature
  • Technology preview: support for accelerated compositing, which enhances the performance of CSS animations and transitions
  • Technology preview: JIT support on Symbian

JavaScript JIT

Just-in-time (JIT) compilation for JavaScript is supported on the following platforms:

  • Mac OS X, 64-bit and 32-bit
  • Windows desktop platforms when using Microsoft Visual C++ or gcc 4.1 or higher (MinGW). 32-bit build only; JIT is not supported on 64-bit builds on Windows.
  • Linux on x86 platforms with gcc 4.1 or higher
  • Linux on ARM (Thumb-2 JIT is not currently used)
  • Symbian on ARM (technology preview, not enabled by default)

Netscape Plug-in API

QtWebKit supports the Netscape Plug-in API on X11, Windows, Mac OS X and Symbian.

Advanced CSS Features

Feature Status Layout tests
CSS 2D Transforms Module Level 3 Experimental, with -webkit prefix. Performance enhanced implementation with accelerated compositing in Technology Preview. LayoutTests/transforms, LayoutTests/transforms/2d, /LayoutTests/fast/transforms, LayoutTests/fast/css
CSS 3D Transforms Module Level 3 ? LayoutTests/transforms, LayoutTests/transforms/3d/general, LayoutTests/transforms/3d/hit-testing, LayoutTests/transforms/3d/point-mapping, LayoutTests/compositing/animation
CSS Transitions Module Level 3 Experimental, with -webkit prefix. Performance enhanced implementation with accelerated compositing in Technology Preview. LayoutTests/transitions, LayoutTests/fast/css, LayoutTests/compositing/transitions
CSS Animations Module Level 3 Experimental, with -webkit prefix LayoutTests/animations, LayoutTests/animations/3d, LayoutTests/compositing/animation
Backgrounds and Borders Module Level 3 support Technology preview, with -webkit prefix
CSS Text Level 3 Not implemented
CSS Fonts Module Level 3 Technology preview
Styling scrollbars with -webkit-scrollbar-* CSS properties ?
-webkit-mask-* CSS properties Experimental, WebKit specific
CSS Canvas drawing Experimental, WebKit specific
CSS reflections Experimental, WebKit specific
CSS View Modes Media feature Technology preview

Web application features

Feature Status Qt documentation Layout test
HTML5 Offline support: HTML5 application cache (manifest attribute) Technology preview (1), (2) OfflineWebApplicationCacheEnabled attribute
HTML5 Offline support: Web Storage (DOM storage, local storage & session storage) Experimental (1), (2) LocalStorageEnabled attribute LayoutTests/storage
HTML5 Offline support: Web SQL Database Experimental [(1), (2) OfflineStorageDatabaseEnabled attribute
HTML5 Offline support: navigator.onLine attribute, online and offline events ?
Web Workers - dedicated workers Not implemented ? LayoutTests/workers
Web Workers - shared workers Not implemented ? LayoutTests/fast/workers
Web Sockets Not implemented LayoutTests/websocket

HTML5 canvas and media

Feature Status Layout test
<canvas> element Experimental (partial support). LayoutTests/fast/canvas
3D canvas support with WebGL Technology preview (partial support)

QtWebKit has had experimental support for HTML5 media via the Phonon multimedia integration since Qt 4.5. As of QtWebKit 2.0, we have added integration to the new QtMultimedia framework in Qt 4.7. In the future, improvements and new development will focus on the QtMultimedia framework based architecture.

Feature Status Layout test
<audio>, <video> and <source> element Technology preview with QtMultimedia in Qt 4.7. Also previous experimental support with Phonon still available when using Qt 4.6. LayoutTests/media, LayoutTests/fast/media

HTML5 functionality in web forms

Feature Status Layout test
HTML5 input types such as email, tel, date, color Not implemented
autofocus attribute for web form controls technology preview
placeholder attribute for placeholder text in an input field technology preview
autocomplete attribute for input values ?
maxlength attribute for text fields ?

Other new web developer APIs and HTML5 features

Feature Status Layout test
Geolocation API Not implemented
HTML5 getElementsByClassName API Experimental
HTML5 element.classList API
HTML5 registerProtocolHandler API
HTML5 registerContentHandler API
HTML5 Cross-document messaging API
W3C Selectors API Experimental
W3C Server-sent Events
Multi-touch input DOM events Not implemented
contenteditable global attribute Experimental
<progress> progress indicator Technology preview (which platforms? will this be enabled by default?)
<meter> an indicator for scalar measurement Technology preview (which platforms? will this be enabled by default?)
<a rel="noreferrer"> (don't provide referrer info when following link) ?, support exist in WebKit (
HTML5 drag and drop Technology preview ?
<ruby>, <rt>, <rp> elements for Chinese notes or characters ?, support in webkit:
<embed> element for embedding content such as a plug-in
Inline SVG Experimental