Copyright © 2012-2013 the Contributors to the Core Mobile Web Platform — 2012 Specification, published by the Core Mobile Web Platform Community Group under the W3C Community Final Specification Agreement (FSA). A human-readable summary is available.
The W3C Core Mobile Web Platform Community Group was established with the objective of helping to make the Web a compelling platform for developing modern mobile applications. The motivation for that is the widespread view that the Web does not represent a compelling platform for mobile applications today.
This document presents a small number of simple mobile Web application use cases. It goes on to list features that the underlying mobile Web platform needs to offer to support those use cases. It then lists technology standards (primarily W3C Recommendations) that describe those features - and also notes the current state of development of such specifications, noting also where such specification do not at present exist.
The purpose of the document is to promote understanding of which areas of Web technology are in need of development, and to encourage prioritization of those areas for specification, implementation and testing.
Other aspects of the Community Group's work, which includes the collation and specification of test suites to assess conformance to referenced standards, and the specification of a framework within which such conformance testing might be assessed are referenced.
This specification was published by the Core Mobile Web Platform Community Group. It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Final Specification Agreement (FSA) other conditions apply. Learn more about W3C Community and Business Groups.
Comments on this document are not only welcomed but are actively solicited and should be made on the firstname.lastname@example.org mailing list. The source code is available on GitHub.
Quoting from its charter:
The goal of the Core Mobile Web Platform (Coremob) Community Group (CG) is to accelerate the adoption of the Mobile Web as a compelling platform for the development of modern mobile Web applications. In order to achieve this mission, the CG brings developers, equipment manufacturers, browser vendors, operators and other relevant members of the industry together to:
- Agree on core features developers can depend on. These will be defined by reference to a variety of other specifications from the W3C and other standards bodies.
- Compile related conformance test suites.
- Provide to W3C (and non-W3C) groups use cases, scenarios, and other input to drive successful mobile deployment.
This document is the initial output of the Community Group. Its focus is items 1 and 3 from its charter above.
The following sections serve to contextualize the role of this document against the CG charter.
The primary audience for this document is standardization groups within the W3C as well as equipment manufacturers and browser vendors. The CG also intends it to be of interest to others in its chartered constituency, especially developers, for feedback on the selection of use cases and the derivation of technology requirements from those use cases.
In respect of Coremob Charter item 1. above, developers should be able to rely upon a set of Web technologies being consistently present and interoperably implemented across a wide range of browsers.
Technology specifications do not advance at a similar rate and are not necessarily of equally widespread utility for particular application use cases. In addition, some depend on others. This document is a description of a subset of Web platform technologies, and provides for a limited, or base set of such use cases.
The CG may go on to produce a number of further descriptions of subsets of Web platform technology specifications which will provide for increasingly sophisticated application use cases.
The use cases chosen reflect a selection of popular applications that have been created using "native" techniques. Although the chosen set of use cases is limited, and the functionality implied by them is (relatively speaking) simple, the set of functionalities is nonetheless described as being "aspirational" because it goes beyond the state of implementation by most current browsers, and indeed goes beyond the current state of specification of some of those features - see below Aspirational nature of the document for a discussion of the aspirational aspect, as construed in this revision.
Having identified features of the Web platform that are required to fulfill the use cases it is then possible to identify a set of technology specifications (or to note the absence of suitable specifications) that specify those features.
Further, having identified a set of specifications, it is then possible to identify a set of tests (or note the absence of such tests) that can be used to assess conformance with the identified specifications and also to propose a test environment in which those tests can be carried out.
This document, as mentioned above, sets out the initial limited set of use cases; it derives Web platform technology requirements from them and it identifies technology specifications, at various states of maturity, that fulfill those requirements. It does not identify tests or test suites that match those technology specifications.
Since standardization work is required to complete the set of technologies required to fulfill the various use cases the document identifies, one of the purposes of the document is to point out that increased coordination between the groups that create standards would be beneficial in order to create a more coherent and pragmatically useful mobile Web application platform.
The intention of this document and subsequent editions, in regard of developers, is to solicit feedback on the use cases and on specific technology areas that are problematic when used in a mobile context. Developers are especially encouraged to contribute to the work of the CG, since it is hoped that such participation will reduce future maintenance and development costs for them and will also provide a means by which developers' voices may be heard by constituencies that need to hear them.
To be clear, the CG is not expressing the judgment that it is not possible to use the Web platform to build a wide variety of applications that can be used in a mobile context. Indeed, there are applications that can be built on the Web platform that work well in a mobile delivery context. The group notes, though, that those applications are not usually specifically mobile in their use cases and tend to be similar in nature to applications that have desktop use cases as much as they have mobile use cases.
Further, the view that it is already practical to develop effective mobile Web applications is expressed with the caveat that there are many "quality of implementation" issues that developers may encounter. For example, the frame rate achievable when developing mobile games may not be sufficient, in some cases, and as another example the synchronization of playing sounds may not be adequate.
Mobile devices often have capabilities (such as a camera) or circumstances of use (such as periods off line, or frequent periods with low bandwidth for data transfer) that make mobile both a more rewarding environment for creation of applications and a more difficult environment for such implementations too.
With the rapid increase in uptake of use of mobile devices, both in developed markets and in less developed markets (perhaps as the only means of Web access in those markets), the CG believes that closing the gap between what can be achieved using Web technology on mobile and what can be achieved using "native application implementations" needs to narrow, urgently.
Other aspects of the CG's work, as mentioned in its charter, continue in parallel to the development of this document. Those activities include a "Gap analysis" of where there are existing test suites relevant to the technologies identified in this document, as well as discussion of a Test Framework within which to execute tests of the conformance of implementations of technologies identified here.
The CG's Web site and Wiki contain links to various aspects of the group's work.
The document has the following structure:
This section, containing information about the document, its history and its scope.
Discusses the use cases that have been used to derive the requirements of Web technologies.
Discusses in abstract terms what technologies are needed to support the use cases.
Discusses the specifications selected to implement "required technologies".
Discusses technologies needed but not specified.
Quality of Implementation
Discusses aspects of implementation of some of the selected technologies
The following use cases are designed to be illustrative and are by no means exhaustive. The basis of selection of the use cases is a survey of the top native applications found in mobile application stores. Each application was assessed for its key features and prioritized according to an assessment of how many applications those features would unlock.
Jenna is hiking in a remote area without network coverage. She takes high quality pictures using a Web application. The pictures are stored locally. She decides to post-process some of the pictures she took by applying ready made filters. She is able to continue taking pictures while the filters are applied. When she returns to an area with better network coverage, her pictures are updated to a remote server. While the upload is going on in the background she can continue taking pictures or can browse her previous shots to select the ones she wants to share with her friends.
Derived requirements: Req. 6, Req. 8, Req. 9, Req. 10, Req. 13, Req. 15, Req. 17, Req. 23.
While on his morning commute, John records a short voice memo using a Web application. As he is offline, the audio file is stored locally. When he reaches the office, the audio file is asynchronously uploaded to the application's servers where it is transcribed.
Derived requirements: Req. 6, Req. 8, Req. 9, Req. 13, Req. 16, Req. 23.
Fantastic Rafaela Sis' is a game the goal of which is to save an imprisoned prince. This is done by navigating a character, Rafaela, across various levels from left to right. Each level consist of a series of obstacles and enemies that the player has to avoid (by jumping over, shooting, etc). The character is controlled by tilting the device. Consequently, the game must be locked in landscape mode to avoid auto-rotation of the viewport interfering with the game play. It has a soundtrack per level and various sound effects.
Derived requirements: Req. 11, Req. 12, Req. 18, Req. 19, Req. 21.
Joe uses public transportation to visit his clients scattered around town. In order to find his way around he relies on a Web application that is able to locate him on a map, display the closest subway station and indicate in which direction he should walk to find it.
Derived requirements: Req. 21, Req. 22.
Jane likes to read the news on her commute to work. She uses a Web application on her tablet that she updates before leaving home. While on the subway, she is able to read the daily news, watch a video of the highlights of yesterday's football match and listen to the magazine's weekly political podcast. Jane is able to navigate through the application using the back and forward button of her browser. And when she finds an article she would like to share with her friend, Sam, she is able to copy and paste the URL into an email.
Derived requirements: Req. 4, Req. 6, Req. 7, Req. 13, Req. 14, Req. 19, Req. 20, Req. 24.
Annette is using her mobile device to access her bank's Web site. Although her bank has a dedicated native application and a mobile version of its site, the information she is looking for is only available on the main site. She is nonetheless able to consult it because her mobile browser supports the same set of Web standards as her desktop browser, and is capable of displaying that information despite the difference in screen size and pixel density.
Derived requirements: Req. 1, Req. 2.
John is en route to his dental appointment. He is late, does not have a record of his dentist's phone number in his mobile device's address book, and has a very poor network connection. Fortunately, the dentist has a responsive Web site which displays with minimal use of resources on John's mobile device. He is able to find his dentist's phone number and call her.
Derived requirements: Req. 1, Req. 2, Req. 3, Req. 24.
Paul uses the same Web mail application on various devices and browsers. He would like to bookmark it so that it is easily recognizable across his different devices yet blends in with how other applications are portrayed in the given environment.
Derived requirements: Req. 5.
Managing battery use and network connectivity (e.g. delay, throughput and cost) is an important concern on mobile devices. The CG thinks that agreement on what it is practical to measure and what actions developers might take in response to those measurements is not at a sufficiently advanced stage to posit requirements in this area.
The following requirements are derived from the use cases described in section 2. Use cases.
Req. 1: A User Agent must support technology commonly available on desktop browsers, so that Web sites and applications designed for desktop are still usable on mobile.
Req. 2: The User Agent must be able to display content specifically targeted at mobile devices.
Req. 3: It must be possible for the User Agent to download and display different content depending on device or User Agent properties such as screen size, pixel density, etc.
Req. 4: The User Agent must support rich typography including using downloadable fonts.
Req. 5: It must be possible to provide the User Agent with metadata a such as the application's name, icon, etc.
Req. 6: It must be possible to make an application available off-line.
Req. 7: The User Agent must allow the application developer to define URLs for chosen resources (for example for bookmarking or sharing) and to manipulate session history for single page applications.
Req. 8: It must be possible for Web application user interfaces to occupy all the screen space yet adapt to different screen sizes without leaving unused space or overflowing.
Req. 9: It must be possible for Web application user interfaces to transition smoothly from one state to another.
Req. 10: It must be possible to scroll smoothly through a large body of content.
Req. 11: A Web application might be designed to be used strictly in portrait or landscape mode. It must be possible to signal this preference to the User Agent.
Req. 12: It must be possible for an application to signal to the User Agent that it wants to operate full screen and not inside the User Agent's chrome.
Req. 13: It must be possible to store files locally and retrieve them without requiring further permission from the user.
Req. 14: It must be possible to asynchronously store and retrieve large, structured persistent data sets.
Req. 15: It must be possible to take pictures using the device's camera. This must be done in such a way that the user's security and privacy is respected.
Req. 16: It must be possible to record audio clips using the device's microphone. This must be done in such a way that the user's security and privacy is respected.
Req. 17: It must be possible to programmatically manipulate a picture so as to crop it, apply filters to it, etc. and save the result of these manipulations. This must not interrupt the ability of the user to interact with the application.
Req. 18: It must be possible to smoothly draw multiple animated sprites in full screen mode (e.g. at 30fps).
Req. 19: It must be possible to play Multiple sound files simultaneously with minimal latency.
Req. 20: It must be possible to play video content.
Req. 21: It must be possible for the application to register to receive updates when the position of the device changes.
Req. 22: It must be possible to obtain the device's current geographic coordinates provided the user consents to sharing those.
Req. 23: It must be possible to upload files to remote server on different origins asynchronously. Uploads should continue even if the user navigates to a different page.
mmsto: URL schemes should allow the user to send an email, make a phone call, send an SMS or send an MMS using the appropriate application to do so.
This section lists existing specifications which address the requirements expressed in section 3. Derived Requirements and notes their current state of standardization (progress along W3C Rec Track is noted using conventional abbreviations).
The document Standards for Web Applications on Mobile: current state and roadmap is regularly updated to reflect current status both of standardization and of implementation of many of the same standards.
The CG has had frequent cause to discuss whether or not it needs to make reference to the whole of a referenced specification. In the course of such discussions it has frequently re-iterated that it is not its role to cherry-pick parts of the specifications produced by other groups. Equally, however, it has frequently noted that its use cases require only sub-sections of referenced specifications. The CG has observed that the WGs responsible for producing such specifications might choose to subset their work to advance speed of specification, modularity of testing and so on.
The CG notes that simple interoperability of video and audio content is highly desirable. The CG also notes that considerations regarding such interoperability concern all aspects of the use of such content on the Web (and are not of more concern in mobile than elsewhere).
|General||HTML5 [HTML5]||CR||Req. 1, Req. 6, Req. 7, Req. 19, Req. 20|
|HTML Media Capture [HTMLMEDIACAPTURE]||WD||Req. 15, Req. 16|
|Scalable Vector Graphics (SVG) 1.1 (Second Edition) [SVG11]||REC||Req. 1, Req. 3|
|CSS Device Adaptation [CSS-ADAPTATION] (as specified through a ||FPWD||Req. 2, Req. 3.|
|General||CSS 2.1 [CSS21]||REC||Req. 1|
|Processing||CSS Values [CSS3VAL] 1||CR||Req. 1|
|CSS Media Queries [CSS3-MEDIAQUERIES]||REC||Req. 1, Req. 2, Req. 3|
|CSS Selectors Level 3 [SELECT]||REC||Req. 1|
|Graphical||CSS Backgrounds and Borders [CSS3-BG]||CR||Req. 1|
|CSS Color [CSS3COLOR]||REC||Req. 1|
|CSS Image Values and Replaced Content [CSS3-IMAGES]||CR||Req. 1|
|Layout||CSS Flexible Box Layout [FLEXBOX]||CR||Req. 8|
|CSS Transforms [CSS3-TRANSFORMS]||WD||Req. 1|
|Typography||CSS Fonts [CSS3-FONTS]||WD||Req. 3, Req. 4|
|WOFF [WOFF]||REC||Req. 3, Req. 4|
|CSS Text [CSS3TEXT] 2||WD||Req. 4|
|Animations and Transitions||CSS Animations [CSS3-ANIMATIONS]||WD||Req. 1|
|CSS Transitions [CSS3-TRANSITIONS]||WD||Req. 9|
1. Most of the common content of CSS Values is already included in CSS 2.1. There are some features that would be welcomed additions, notably
rem unit, but also some that don't seem to have a lot of traction (e.g.
2. The requirements are only for a small subset of CSS Text, mainly text-shadow. Like CSS Values, a lot what is of interest is already covered by CSS 2.1. ↩
|General||ECMAScript, Edition 5.1 [ECMA-262-51]||N/A||Req. 1|
|DOM||DOM4 API [DOM4]||WD||Req. 1|
|DOM Level 3 Events [DOM-LEVEL-3-EVENTS]||WD||Req. 1|
|Progress Events [PROGRESS-EVENTS]||CR||Req. 1|
|Selectors API Level 1 [SELECTORS-API]||PR||Req. 1|
|Touch Events version 1 [TOUCH-EVENTS]||LCWD||Req. 2|
|CSSOM [CSSOM]||FPWD||Req. 1|
|CSSOM View [CSSOM-VIEW]||WD||Req. 1, Req. 2|
|Storage||Web Storage API [WEBSTORAGE]||CR||Req. 1|
|Indexed Database API [INDEXEDDB]||LCWD||Req. 13, Req. 14|
|File API [FILE-API]||WD||Req. 15, Req. 16, Req. 17, Req. 13, Req. 23|
|Quota Management API [QUOTA-API]||FPWD||Req. 6, Req. 13, Req. 14|
|Networking||XMLHttpRequest API [XMLHTTPREQUEST]||WD||Req. 1, Req. 23|
|Web Messaging API [POSTMSG]||CR||Req. 1 Req. 23|
|Web Workers API [WEBWORKERS]||CR||Req. 1, Req. 23|
|Sensors||Geolocation API [GEOLOCATION-API]||PR||Req. 22|
|DeviceOrientation Event [DEVICE-ORIENTATION]||LCWD||Req. 21|
|Multimedia||Canvas2D API [CANVAS-2D]||CR||Req. 17, Req. 18|
|Timing control for script-based animations API [ANIMATION-TIMING]||LCWD||Req. 18|
|General||HTTP 1.1 [HTTP11]||N/A||Req. 1|
|The Web Origin Concept [ORIGIN]||N/A||Req. 1|
|Cross-Origin Resource Sharing [CORS]||CR||Req. 23|
|The ||N/A||Req. 1|
|The ||N/A||Req. 24|
|The ||N/A||Req. 24|
|The ||N/A||Req. 24|
|The ||N/A||Req. 24|
The following requirements are only partially addressed by existing specifications: Req. 1, Req. 2, Req. 3, Req. 5, Req. 6, and Req. 11.
There is ongoing work to address each of those requirements within W3C as detailed below. The CG encourages these efforts.
While Req. 1 and Req. 2 are generally addressed by a number of existing specifications, there is one area which is still problematic - user input. Touch-enabled devices delay click inputs (presumably to handle long and double taps). While there are some different solutions that remove the delay, developers tend to rely instead on touch events [TOUCH-EVENTS]. In turn, this creates content which doesn't work properly when used with a different kind of input mechanism. In order to address this situation, the Pointer Event WG was formed and has published a first Working Draft [POINTER-EVENTS].
While a lot has been done to address Req. 3, notably through media queries, there is no set solution for responsive images to date. The Responsive Images CG has made a proposal (The picture element), and so has the HTML WG (The srcset attribute). The HTML WG is set to determine the merit of both solutions and examine whether they should be combined.
The multitude of existing formats to describe application meta-data (Req. 5) have been listed elsewhere already. The WebApps WG is chartered to work on this and has two related specs: Widget Packaging and Configuration [WIDGETS] (which has had little traction among the main vendors), and Web Application Manifest Format and Management APIs [WEBAPPS-MANIFEST-API] (which is still an early Editor's draft). Additionally, the combination of a number of [HTML5] features, such as the
meta application-name element and
link icons element provides similar capabilities, yet this solution lacks sufficient comprehensiveness and cohesiveness to meet the requirements.
Currently, Application Cache is the only Web technology designed to address Req. 6. Its issues have already been exhaustively documented elsewhere. This technology is very complex, poorly understood, and hard to use. It is also marked at risk in the HTML5 specification.
Recently, the WebApps WG has decided to take over this work with the blessing of the HTML WG. In parallel, the Fixing Application Cache CG is collecting case studies, use cases and requirements.
The following requirements aren't addressed by existing specifications: Req. 10, and Req. 12.
However, there is early work going on to address some of these.
Smooth and stutter-free scrolling is first and foremost a QoI issue. However, the requirements (maintaining 60fps while possibly altering the DOM) are sufficiently taxing that they are difficult to meet on mobile devices, even on high-end ones. Some very recent work attempts to cater to this issue.
While within the scope of the WebApps WG's charter, no work that would address Req. 12 is currently ongoing.
The CG notes that functional conformance to specifications is sometimes insufficient to create a functional user experience of Web applications. There are many areas in which non-functional (or QoI) requirements have been noted, relating to speed, time related consistency (smoothness) and so on.
The group's work to date has yielded the following particular points of note:
Implementors should pay particular attention to the quality of implementation of the
audio elements are commonly used in games to play background music and sound effects. It is recommended that implementations support playing 8 audio files in parallel without audible artifacts and provide sub 10ms latency.
Implementors should pay attention to the performance characteristics of the
canvas element which is particularly well suited for the development of 2D and isometric games. In order to meet the expectations of users, implementations should be capable of running such games at 30fps in full-screen mode.
Smooth scrolling, transitions, and animations are key to delivering great user experiences. Implementations should aim to render these at 60fps.
On mobile devices content input is often tedious. Implementors should therefore implement dedicated form controls where appropriate (for example, displaying a numerical keypad for inputs of type
This document does not express any conformance requirements. Conformance to this document would consist of conforming to the technology standards it identifies, however, some of the technology standards it identifies have not advanced to a sufficient state of maturity to be capable of having conformance requirements.
The editors thank Lars Erik Bolstad, Giridhar Mandyam, and Marcos Cáceres for their help collecting use case and requirements.
The editors thank Matt Kelly for initiating and driving the research on the requirements of top native applications, and also thank WonSuk Lee and Ming Jin and others who contributed to it.
The editors thank all members of the Coremob CG for contributions of various kinds.