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

computed values, inheritance, and short hand

From: fantasai <fantasai@escape.com>
Date: Thu, 12 Feb 2004 12:52:40 -0500
Message-ID: <402BBD68.30301@escape.com>
To: www-style@w3.org

in Mozilla bug report 4510 Ian Hickson wrote:
 >
 > > STYLE_NONE means there's no border; i.e. the border width must calculate to
 > > zero no matter what it's specified value.
 >
 > It must _compute_ to zero, even, so this should happen during the cascade.
 >
 > e.g.:
 >
 >   div { border: none 2em red; }
 >   span { border: inherit; border-style: solid; }
 >
 >   <div><span> test </span></div>
 >
 > ...should not have any border. (We currently do this wrong. It works in Opera.)

In
   div {border-style: none;}
   span { border-style: inherit; border-style: solid; }

Does the span have a border or not?

~fantasai
Received on Thursday, 12 February 2004 12:54:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:26 GMT