- From: (wrong string) äper <christoph.paeper@tu-clausthal.de>
- Date: Tue, 2 Jul 2002 21:25:34 -0400 (EDT)
- To: <www-validator-css@w3.org>
Moin! When using the shorthand property 'border' with 'transparent' as the color value, the validator reports an error like this: | Invalid number : border Too many values or values are not recognized : | 1px solid transparent This would be the correct behaviour for the unaltered CSS Level 2 specification, which says in chapter 8.5.2 [1]: | 'border-color' | Value: <color>{1,4} | transparent | inherit | | 'border' | Value: [ <'border-width'> || <'border-style'> || <color> ] | inherit | | 'border-top-color', 'border-right-color', 'border-bottom-color', | 'border-left-color' | Value: <color> | inherit *but* is corrected by the Errata [2]: | Section 8.5.2 Border color: 'border-top-color', 'border-right-color', | 'border-bottom-color', 'border-left-color', and 'border-color' | | [2001-06-25] The value 'transparent' is also allowed on 'border-top-color', | 'border-right-color', etc. Change the line "Value: <color> | inherit" to | | Value: <color> | transparent | inherit and a few lines later | [2001-06-25] The value 'transparent' is also allowed on 'border-top', | 'border-bottom', 'border-right', 'border-left', and 'border'. | | Change the two lines "Value: [ <'border-top-width'> || <'border-style'> || | <color> | inherit" to | | Value: [ <border-top-width> || <border-style> || [<color> | transparent] | | inherit furthermore | The individual border-X-color property definitions may also take the | value 'transparent'. | The 'border-color' shorthand property should read: | | [ <color> | transparent ]{1,4} | inherit Thus 'transparent' is valid for any possibility to declare some border color. As the Errata are AFAIK normative, I consider the aforementioned error message a bug. In fact, there's only exactly one possibility to get no validator error in combination with transparent borders (also see my test CSS [3]): | border-color: transparent; ________________________________________________________________________ [1] <http://www.w3.org/TR/CSS2/box.html#border-color-properties> [2] <http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html> [3] <http://www.tu-clausthal.de/~ktcwcp/temp/transparent-border.css> Christoph Päper
Received on Thursday, 11 July 2002 18:10:16 UTC