W3C home > Mailing lists > Public > www-style@w3.org > February 2007

Re: [CSS21] escapes in !important declarations

From: Bert Bos <bert@w3.org>
Date: Mon, 19 Feb 2007 16:36:34 +0100
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: www-style@w3.org
Message-Id: <200702191636.34451.bert@w3.org>

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


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 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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:27 UTC