Re: valid and invalid declaration expressions (peculiar)

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