W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2003

Re: valid and invalid declaration expressions (peculiar)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 22 Jan 2003 19:39:02 +0100
To: Alex Geller <alexgeller@web.de>
Cc: www-validator-css@w3.org
Message-ID: <3e41e421.30486607@smtp.bjoern.hoehrmann.de>

* Alex Geller wrote:
>consider the following two rules:
>
>      A { margin-top:12pt+2pt }
>      B { margin-top:12pt-2pt }
>
>While the first rule is accepted, the second is rejected saying
>"Unknown dimension : 12pt-2pt".
>Is 12pt+2pt a known dimension then?

No, both declarations are invalid, since both values are invalid
<length>s and margin-top allows only 

  <length> | <percentage> | auto | inherit

in CSS Level 2. In other words, accepting the first rule is a bug.
Received on Wednesday, 22 January 2003 13:38:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:11 GMT