W3C home > Mailing lists > Public > www-style@w3.org > October 2003

Re: css21 sec 8.5.4 border shorthand

From: Tex Texin <tex@i18nguy.com>
Date: Sat, 18 Oct 2003 15:16:44 -0400
Message-ID: <3F91919C.B11E5F0A@i18nguy.com>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-style@w3.org

If that is intentional, then there should be a footnote or an explanation.

The name single-border-color would be more meaningful.

However, doesn't the same issue hold for width and style, in that each of those
values can only be a single value?

Two alternatives would be:

1) use border-color and border-colors as appropriate.

2) Since {1,4} is used in places to indicate that up to 4 choices are
available, {1} might be used to indicate a single choice.

But all in all, I think border-color would do and is clear.

tex

Boris Zbarsky wrote:
> 
> Tex Texin wrote:
> 
> > In both descriptions of the border properties "value:, the color is listed as
> > border-top-color instead of border-color.
> 
> Actually, this is correct, as far as I can tell.  'border-top-color'
> allows a single color value, while 'border-color' allows anywhere from 1
> to 4 color values.  The former is valid in the "border" and
> "border-top/right/bottom/left" shorthands, while the latter is not.
> 
> The choice of 'top' was arbitrary, though -- it would be just as easy to
> use any of the other sides or to define a new value set
> (<single-border-color>?) and use that in all the relevant spots.
> 
> -Boris

-- 
-------------------------------------------------------------
Tex Texin   cell: +1 781 789 1898   mailto:Tex@XenCraft.com
Xen Master                          http://www.i18nGuy.com
                         
XenCraft		            http://www.XenCraft.com
Making e-Business Work Around the World
-------------------------------------------------------------
Received on Saturday, 18 October 2003 15:16:58 GMT

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