- From: Hakon Lie <howcome@w3.org>
- Date: Thu, 31 Jul 1997 16:42:14 +0200 (MET DST)
- To: Sho Kuwamoto <skuwamoto@macromedia.com>
- Cc: www-style@w3.org
Sho Kuwamoto writes: > Why is it that border-width is shorthand for border-left-width, > border-right-width, etc., while border-color isn't shorthand > for anything? It's a good question that has some history behind it. Initially we wanted to keep the number of CSS properties low and -- more importantly -- keep them independent of each other. On the other hand, if you write a script that dynamically changes the value of properties, you want each and every property to be exposed. Therefore, it has been argued that 'border-left-color' etc. should be added to CSS. Now, it turns out that scripts that modify the presentation of documents need more information than the CSS1 properties contain. E.g., most elements will have the 'width' property set to 'auto', and the formatter will automatically assign a width to the box that corresponds to the element, e.g. 200px. A script will want to read/write both these values. It would therefore, it seems, be good to formalize the difference between the pre-formatting properties and the post-formatting properties. Perhaps 'border-left-color' only need to be present on the post-formatting side. -h&kon H å k o n W i u m L i e howcome@w3.org W o r l d Wide W e b Consortium inria §°þ#¡ª FRANCE http://www.w3.org/people/howcome
Received on Thursday, 31 July 1997 10:42:22 UTC