Re: [CSS21] escapes in !important declarations

On Tuesday 09 January 2007 20:31, Bjoern Hoehrmann wrote:
> Hi,
>
>   I think the current CSS 2.1 draft is unclear whether escapes can be
> used in !important declarations as in color:red!\important; or color:
> red!imp\ortant; there seems to be no consensus among implementations.

The CSS WG discussed the issue and concluded that chapter 4 was correct 
(escapes are allowed by section 4.1.3: "Identifiers can also contain 
escaped characters") and appendix G incorrect.

Appendix G has been changed for the next draft. In particular, the token 
IMPORTANT_SYM is now defined as

    "!"({w}|{comment})*{I}{M}{P}{O}{R}{T}{A}{N}{T}

using the same macros {I}, {M}, etc., that were already used to allow 
escapes in dimensions such as '7in' and '2em'.

Please, check that this indeed solves the issue and let us know.

[For future reference: This issue has been put as "issue 16" in the 
issues list that we plan to publish along with the next draft.]



For the CSS WG,
Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Monday, 19 February 2007 15:36:38 UTC