This document specifies a profile of CSS that is in general based on CSS 2.1 [CSS21], but requires as well new features from CSS 3. In addition the document defines an OPTIONAL feature set, that is suggested to be implemented by more advanced user agents.
The key words of descriptive assertions and RFC 2119 terminology. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119].
Since the goal of this specification is to define a baseline interoperability level, user agents MAY accept CSS documents conforming to CSS 2.1 or subsequent revisions of the CSS family of Recommendations.
In order to conform to this specification, user agents, authoring tools, and content MUST conform to the Conformance and Error conditions section of the CSS 2.1 specification [CSS21], with the following modifications.
- Only features marked as supported in this specification are REQUIRED. Aside of the REQUIRED feature set, an additional OPTIONAL feature set is given, that may be implemented by more advanced user agents. This feature set is REQUIRED by the CDF as in [WICDMobile10]. Support for a larger set of CSS 2.1 is OPTIONAL.
- The requirement concerning which CSS 2.1 media types are supported is tightened so that both the
allmedia types MUST be accepted and processed. Other media types MAY be accepted and processed as well.
- The requirements that user agents MUST make it possible to select an alternate style sheet amongst those linked from the document, as well as provide for a way to turn off author style sheets, are relaxed to be RECOMMENDED behavior, but not REQUIRED.
Selectors are defined in the Selectors chapter of the CSS 2.1 specification [CSS21]. The following table identifies which selector constructs MUST be supported amongst those defined by CSS 2.1.
|Universal selector||Matches any element.||REQUIRED|
|Type selectors||Matches any E element.||REQUIRED|
|Descendant selectors||Matches any F element that is a descendant of an E element.||REQUIRED|
|Child selectors||Matches any F element that is a child of an element E.||REQUIRED|
|The link pseudo-classes||Matches element E if E is the source anchor of a hyperlink, unvisited by a user.||REQUIRED|
|The link pseudo-classes||Matches element E if E is the source anchor of a hyperlink, visited by a user.||REQUIRED|
|The dynamic pseudo-classes||Matches element E if E is being activated by the user.||REQUIRED|
|The dynamic pseudo-classes||Matches element E if E has the focus (accepts keyboard events or other forms of text input).||REQUIRED|
|Class selectors|| Language specific. (In (X)HTML, matches elements whose ||REQUIRED|
|ID selectors||Matches any element with an ID equal to "myid".||REQUIRED|
|Grouping||Matches a group of elements, which share the same style declarations.||REQUIRED|
At-rules are defined in the at-rules section of the CSS 2.1 specification [CSS21]. The following table identifies which at-rule constructs MUST be supported amongst those defined by CSS by setting the at-rule as REQUIRED in the table’s last column. Only at-rules that are part of the suggested feature set for advanced user agents are listed here as OPTIONAL.
|@charset||Defines character encoding for the style sheet.||REQUIRED|
|@import||Imports an external style sheet.||REQUIRED|
|@media||Groups a set of style rules to apply only to one or more particular media. |
|@namespace||For declaring the default namespace and binding namespaces to namespace prefixes.||OPTIONAL|
Properties are defined in several chapters of the CSS 2.1 specification [CSS21] and in case of marquee properties in the CSS Marquee Module [CSS3MARQUEE]. The following table identifies which properties MUST be supported amongst those defined by CSS by setting the property as REQUIRED in the table’s last column. Only properties that are part of the suggested feature set for advanced user agents are listed here as OPTIONAL. The property syntax is provided (expressed using the same value specifications as CSS 2.1) when it is subsetted from the original. Limitations that apply to a property apply equally to its shorthand alternative.
|Property||Syntax (if different from CSS )||Conformance|
- Content Providers will reach a larger and more satisfied audience by following Mobile Web Best Practices [MOBILE-BP] and CSS Techniques for Web Content Accessibility Guidelines [WCAG10-CSS-TECHS].
1.1 [WCSS11] introduced
Input. Those extensions are deprecated in OMA Wireless CSS 1.2 [WCSS12]. The
Marqueefunctionality has been redefined by the marquee properties of the CSS 3 box model [CSS3MARQUEE]
A user agent MUST support all value types defined in the Values section of the CSS 2.1 specification [CSS21], with the following exceptions:
- Support for counter values is OPTIONAL
- Support for CSS2 System Colors and User preferences for fonts is OPTIONAL.
The editors wish to thank the authors of the previous version of this document, Ted Wugofski (Openwave), Doug Dominiak (Openwave, formerly Motorola), Peter Stark (Ericsson), and Tapas Roy (Openwave), as well as the authors of the OMA Wireless CSS specifications and the CSS 2.1 specification. Furthermore, the editors want to thank the CDF WG for their participation on this specification.