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.
Comments on this document are not only welcomed but are actively solicited and should be made on the [public-coremob@w3.org mailing list](http://lists.w3.org/Archives/Public/public-coremob/). The source code is available on [GitHub](https://github.com/coremob/coremob-2012).
Introduction
============
Quoting from its [charter](http://www.w3.org/community/coremob/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:
> 1. 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.
> 1. Compile related conformance test suites.
> 1. 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.
### Audience
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.
### Goals
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.
### Methodology
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](#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.
### Purpose of this Document
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.
### Aspirational nature of the document
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 Focus
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
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](http://www.w3.org/community/coremob/) and [Wiki](http://www.w3.org/community/coremob/wiki/) contain links to various aspects of the group's work.
### Structure
The document has the following structure:
1. Introduction
This section, containing information about the document, its history and its scope.
2. Use Cases
Discusses the use cases that have been used to derive the requirements of Web technologies.
3. Required Technologies
Discusses in abstract terms what technologies are needed to support the use cases.
4. Specifications Selected
Discusses the specifications selected to implement "required technologies".
5. Missing Specifications
Discusses technologies needed but not specified.
6. Quality of Implementation
Discusses aspects of implementation of some of the selected technologies
Use cases
=========
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](https://docs.google.com/spreadsheet/ccc?key=0AuIhlK0fCwP4dEFPR1pUWHk1QVczcV9xbFAtX19CMXc#gid=1) 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.
Take pictures in a remote area without network coverage
-------------------------------------------------------
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:
,
,
,
,
,
,
,
.
Record voice memos
------------------
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:
,
,
,
,
,
.
Play a 2D Game
---------------
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:
,
,
,
,
.
Find the nearest subway station
-------------------------------
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:
,
.
Read an online magazine
-----------------------
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:
,
,
,
,
,
,
,
.
View a regular Web site
----------------------
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:
,
.
Browse a responsive Web site
---------------------------
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:
,
,
,
.
Bookmarking a Web application
-----------------------------
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:
.
Derived Requirements
====================
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 .
General
-------
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.
The User Agent MUST be able to display content specifically targeted at mobile devices.
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.
The User Agent MUST support rich typography including using downloadable fonts.
App-specific
------------
It MUST be possible to provide the User Agent with metadata a such as the application's name, icon, etc.
It MUST be possible to make an application available off-line.
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.
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.
It MUST be possible for Web application user interfaces to transition smoothly from one state to another.
It MUST be possible to scroll smoothly through a large body of content.
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.
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.
Storage
-------
It MUST be possible to store files locally and retrieve them without requiring further permission from the user.
It MUST be possible to asynchronously store and retrieve large, structured persistent data sets.
Multimedia
----------
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.
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.
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.
It MUST be possible to smoothly draw multiple animated sprites in full screen mode (e.g. at 30fps).
It MUST be possible to play Multiple sound files simultaneously with minimal latency.
It MUST be possible to play video content.
Sensors
-------
It MUST be possible for the application to register to receive updates when the position of the device changes.
It MUST be possible to obtain the device's current geographic coordinates provided the user consents to sharing those.
Networking
----------
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.
`mailto:`, `tel:`, `sms:` and `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.
Specifications which address the derived requirements
=====================================================
This section lists existing specifications which address the requirements expressed in and notes their current state of standardization (progress along [W3C Rec Track](http://www.w3.org/2005/10/Process-20051014/tr.html#maturity-levels) is noted using conventional abbreviations).
The document [Standards for Web Applications on Mobile: current state and roadmap](http://www.w3.org/Mobile/mobile-web-app-state/) 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).
Markup
------
Category | Specification | Status | Requirements Addressed
|
General | HTML5 [[HTML5]] | CR |
,
,
,
,
|
---|
HTML Media Capture [[HTMLMEDIACAPTURE]] | WD |
,
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) [[SVG11]] | REC |
,
|
CSS Device Adaptation [[CSS-ADAPTATION]] (as specified through a `meta` viewport element) | FPWD |
,
.
|
Style
-----
Category | Specification | Status | Requirements Addressed
|
General | CSS 2.1 [[CSS21]] | REC |
|
---|
Processing
| CSS Values [[CSS3VAL]] [1](#fn1) | CR |
|
---|
CSS Media Queries [[CSS3-MEDIAQUERIES]] | REC |
,
,
|
CSS Selectors Level 3 [[SELECT]] | REC |
|
Graphical
| CSS Backgrounds and Borders [[CSS3-BG]] | CR |
|
---|
CSS Color [[CSS3COLOR]] | REC |
|
CSS Image Values and Replaced Content [[CSS3-IMAGES]] | CR |
|
Layout
| CSS Flexible Box Layout [[FLEXBOX]] | CR |
|
---|
CSS Transforms [[CSS3-TRANSFORMS]] | WD |
|
Typography
| CSS Fonts [[CSS3-FONTS]] | WD |
,
|
---|
WOFF [[WOFF]] | REC |
,
|
CSS Text [[CSS3TEXT]] [2](#fn2) | WD |
|
Animations and Transitions
| CSS Animations [[CSS3-ANIMATIONS]] | WD |
|
---|
CSS Transitions [[CSS3-TRANSITIONS]] | WD |
|
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 `calc()`, `rem` unit, but also some that don't seem to have a lot of traction (e.g. `toggle()`). [↩](#fn1-ref)
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. [↩](#fn2-ref)
Scripting
---------
Category | Specification | Status | Requirements Addressed
|
General | ECMAScript, Edition 5.1 [[ECMA-262-51]] | N/A |
|
---|
DOM
| DOM4 API [[DOM4]] | WD |
|
---|
DOM Level 3 Events [[DOM-LEVEL-3-EVENTS]] | WD |
|
Progress Events [[PROGRESS-EVENTS]] | CR |
|
Selectors API Level 1 [[SELECTORS-API]] | PR |
|
Touch Events version 1 [[TOUCH-EVENTS]] | LCWD |
|
CSSOM [[CSSOM]] | FPWD |
|
CSSOM View [[CSSOM-VIEW]] | WD |
,
|
Storage
| Web Storage API [[WEBSTORAGE]] | CR |
|
---|
Indexed Database API [[INDEXEDDB]] | LCWD |
,
|
File API [[FILE-API]] | WD |
,
,
,
,
|
Quota Management API [[QUOTA-API]] | FPWD |
,
,
|
Networking
| XMLHttpRequest API [[XMLHTTPREQUEST]] | WD |
,
|
---|
Web Messaging API [[POSTMSG]] | CR |
|
Web Workers API [[WEBWORKERS]] | CR |
,
|
Sensors
| Geolocation API [[GEOLOCATION-API]] | PR |
|
---|
DeviceOrientation Event [[DEVICE-ORIENTATION]] | LCWD |
|
Multimedia
| Canvas2D API [[CANVAS-2D]] | CR |
,
|
---|
Timing control for script-based animations API [[ANIMATION-TIMING]] | LCWD |
|
Network
-------
Category | Specification | Status | Requirements Addressed
|
General
| HTTP 1.1 [[HTTP11]] | N/A |
|
---|
The Web Origin Concept [[ORIGIN]] | N/A |
|
Cross-Origin Resource Sharing [[CORS]] | CR |
|
The `data:` URI scheme [[RFC2397]] | N/A |
|
The `mailto:` URI scheme [[RFC6068]] | N/A |
|
The `tel:` URI scheme [[RFC3966]] | N/A |
|
The `sms:` URI scheme [[RFC5724]] | N/A |
|
The `mmsto:` URI scheme [[OMA-URI-SCHEMES]] | N/A |
|
Requirements only partially addressed by existing specifications
================================================================
The following requirements are only partially addressed by existing specifications: ,
,
,
,
, and
.
There is ongoing work to address each of those requirements within W3C as detailed below. The CG encourages these efforts.
Pointer events
--------------
While and 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](https://developers.google.com/mobile/articles/fast_buttons) [solutions](https://github.com/ftlabs/fastclick) 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](http://www.w3.org/2012/pointerevents/) was formed and has published a first Working Draft [[POINTER-EVENTS]].
Responsive Images
-----------------
While a lot has been done to address , notably through media queries, there is no set solution for responsive images to date. The [Responsive Images CG](http://www.w3.org/community/respimg/) has made a proposal ([The picture element](http://picture.responsiveimages.org/)), and so has the HTML WG ([The srcset attribute](http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/Overview.html)). The HTML WG is set to determine the merit of both solutions and examine whether they should be combined.
Application meta-data
---------------------
The multitude of existing formats to describe application meta-data () have been [listed](http://www.brucelawson.co.uk/2011/installable-web-apps-and-interoperability/) [elsewhere](http://blog.tobie.me/post/14262541286/app-manifests-an-anthology) already. The WebApps WG is [chartered](http://www.w3.org/2012/webapps/charter/Overview.html#deliverables) 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 `title` element, `meta` application-name element and `link` icons element provides similar capabilities, yet this solution lacks sufficient comprehensiveness and cohesiveness to meet the requirements.
Offline
-------
Currently, Application Cache is the only Web technology designed to address . Its issues have already been [exhaustively](http://www.w3.org/2011/web-apps-ws/Report) [documented](https://etherpad.mozilla.org/appcache-london) [elsewhere](https://etherpad.mozilla.org/appcache). This technology is very complex, poorly understood, and hard to use. It is also [marked at risk](http://www.w3.org/TR/html5/#status-of-this-document) in the HTML5 specification.
Recently, the [WebApps WG has decided to take over this work](http://www.w3.org/2012/10/30-webapps-minutes.html#item06) with the blessing of the HTML WG. In parallel, the [Fixing Application Cache CG](http://www.w3.org/community/fixing-appcache/) is collecting case studies, use cases and requirements.
Screen Orientation
------------------
A specification to fulfill is a deliverable of the WebApps WG. A first public Working Draft [[SCREEN-ORIENTATION]] was recently published by the WG. The CG applauds this effort and encourages the WG to explore other solutions such as a JavaScript API for [[CSS-ADAPTATION]] which already has an `orientation` property.
Unaddressed requirements
========================
The following requirements aren't addressed by existing specifications: , and .
However, there is early work going on to address some of these.
Momentum and infinite scrolling
-------------------------------
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](http://fremycompany.com/TR/2012/ED-css-viewport/) attempts to cater to this issue.
Chromeless Mode
---------------
While within the scope of the WebApps WG's [charter](http://www.w3.org/2012/webapps/charter/), no work that would address is currently ongoing.
Quality of Implementation
=========================
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:
QoI of the `audio` element
--------------------------
Implementors should pay particular attention to the quality of implementation of the `audio` element. `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.
Performance of the `canvas` element
-----------------------------------
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.
Performance of scrolling, transitions, and animations
-----------------------------------------------------
Smooth scrolling, transitions, and animations are key to delivering great user experiences. Implementations should aim to render these at 60fps.
Dedicated form controls
-----------------------
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 `tel`).
Conformance
===========
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.
Acknowledgements
================
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](http://www.w3.org/community/coremob/participants) of the Coremob CG for contributions of various kinds.