Firefox OS Help. Firefox for Android Help. Using files from web applications. Using the File API, which was added to the DOM in HTML5, it's now possible for web content to ask the user to select local files and then read the contents of those files.
This selection can be done by either using an HTML <input> element or by drag and drop. If you want to use the DOM File API from extensions or other browser chrome code, you can; however, note there are some additional features to be aware of. Using web workers - MDN Docs. Dedicated Web Workers provide a simple means for web content to run scripts in background threads.
Once created, a worker can send messages to the spawning task by posting messages to an event handler specified by the creator. However, they work within a global context different from the current window (using the window shortcut instead of self in order to get the current global scope within a Worker will return, in fact, an error). Drag and drop. Firefox and other Mozilla applications support a number of features for handling drag and drop.
This allows the user to click and hold the mouse button down over an element, drag it to another location, and release the mouse button to drop the element there. A translucent representation of what is being dragged will follow the mouse pointer during the drag operation. The drop location may be a different application. Web sites, extensions, and XUL applications may make use of this functionality to customize what elements may be dragged, the drag feedback, as well as specify where elements may be dropped.
This section covers drag and drop in Firefox 3.5 (Gecko 1.9.1) and later. DOM Storage. Summary.
This guide provides an introduction to using transforms. CSS transforms are implemented using a set of CSS properties that let you apply affine linear transformations to HTML elements. These transformations include rotation, skewing, scaling, and translation both in the plane and in the 3D space. CSS transforms properties Two major properties are used to define CSS transforms: transform and transform-origin transform-origin. CSS animations. CSS animations make it possible to animate transitions from one CSS style configuration to another.
Embedding media in your HTML document is trivial: Using CSS gradients. CSS gradients are new types of <image> added in the CSS3 Image Module.
Using CSS gradients lets you display smooth transitions between two or more specified colors. Using Application Cache - MDN Docs. Introduction HTML5 provides an application caching mechanism that lets web-based applications run offline.