Copyright © 2006 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
This specification defines in general a subset of CSS 2.1 [CSS21] that is to be considered a baseline for interoperability between implementations of CSS on constrained devices (e.g. mobile phones). Its intent is not to produce a profile of CSS incompatible with the complete specification, but rather to ensure that implementations that due to platform limitations cannot support the entire specification implement a common subset that is interoperable not only amongst constrained implementations but also with complete ones. Additionally, this specification aligns itself as much as possible with the OMA's Wireless CSS 1.1 [WCSS11] specification.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
The (archived) public mailing list www-style@w3.org (see instructions) is preferred for discussion of this specification. When sending e-mail, please put the text “css-mobile” in the subject, preferably like this: “[css-mobile] …summary of comment…”
This document was produced by the CSS Working Group (part of the Style Activity).
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This document specifies a profile of CSS that is a subset of CSS 2.1 [CSS21].
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.
handheld
and all
media types MUST be accepted
and processed. Other media types MAY be accepted and processed as well.
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.
Selector type | Example | Meaning |
---|---|---|
Universal selector | *
| Matches any element. |
Type selectors | E
| Matches any E element. |
Descendant selectors | E F
| Matches any F element that is a descendant of an E element. |
Child selectors | E > F
| Matches any F element that is a child of an element E. |
The link pseudo-classes | E:link
| Matches element E if E is the source anchor of a hyperlink, unvisited by a user. |
The link pseudo-classes | E:visited
| Matches element E if E is the source anchor of a hyperlink, visited by a user. |
The dynamic pseudo-classes | E:active
| Matches element E if E is being activated by the user. |
The dynamic pseudo-classes | E:focus
| Matches element E if E has the focus (accepts keyboard events or other forms of text input). |
Class selectors | .warning
| Language specific. (In (X)HTML, matches elements whose
class attribute contains a token with the same name.)
|
ID selectors | #myid
| Matches any element with an ID equal to "myid". |
Grouping | E1, E2, E3 { ... }
| Matches a group of elements, which share the same style declarations. |
Should Namespace selectors (a CSS level 3 feature, see [SELECT]) also be 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 2.1.
Rule | Definition |
---|---|
@charset | Defines character set for the style sheet. |
@import | Imports an external style sheet. |
@media | Groups a set of style rules to apply only to one or more particular media. |
Properties are defined in the in several chapters of the CSS 2.1 specification [CSS21]. The following table identifies which properties MUST be supported amongst those defined by CSS 2.1, as well as their syntax (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 2.1) |
---|---|
background-color | |
background-image | |
background-repeat | |
background-attachment | |
background-position | top | center | bottom | left | right | inherit
|
background | |
border-top-width border-right-width border-bottom-width border-left-width | |
border-width | |
border-top-color border-right-color border-bottom-color border-left-color | |
border-color | |
border-top-style border-right-style border-bottom-style border-left-style | none | solid | dashed | dotted | inherit
|
border-style | none | solid | dashed | dotted | inherit
|
border-top border-right border-bottom border-left | |
border | |
bottom | <relative unit> | <percentage> | auto |
inherit
|
clear | |
color | |
display | inline | block | list-item | none | inherit
|
float | |
font-family | |
font-style | |
font-variant | |
font-weight | |
font-size | |
font | |
height | <relative unit> | <percentage> | auto |
inherit
|
left | <relative unit> | <percentage> | auto |
inherit
|
list-style-type | disc | circle | square | decimal | lower-roman | upper-roman
| lower-alpha | upper-alpha | none | inherit
|
list-style-image | |
list-style | |
margin-top margin-right margin-bottom margin-left | |
margin | |
max-height | |
max-width | |
min-height | |
min-width | |
outline-color | |
outline-style | none | solid | dashed | dotted | inherit
|
outline | [ <'outline-color'> || <'outline-style'> ] |
inherit
|
padding-top padding-right padding-bottom padding-left | |
padding | |
position | relative | absolute | inherit
|
right | <relative unit> | <percentage> | auto |
inherit
|
text-indent | |
text-align | |
text-decoration | none | blink |underline | inherit
|
text-transform | |
top | <relative unit> | <percentage> | auto |
inherit
|
vertical-align | baseline | sub | super | inherit
|
visibility | |
white-space | |
width | <relative unit> | <percentage> | auto |
inherit
|
z-index |
'Marquee'
, 'Access Keys'
and
'Input'
. These extensions are not part of this
specification.
A user agent MUST support all value types defined in the Values section of the CSS 2.1 specification [CSS21], with the following exceptions:
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 specification and the CSS 2.1 specification. Furthermore, the editors want to thank the CDF WG for their participation on this specification.