- From: Anne van Kesteren <annevk@opera.com>
- Date: Thu, 08 Jan 2009 11:33:29 +0100
- To: "MURAKAMI Shinyu" <murakami@antenna.co.jp>, www-style@w3.org
On Thu, 08 Jan 2009 00:28:18 +0100, MURAKAMI Shinyu <murakami@antenna.co.jp> wrote: > I'm curious about the border-radius shorthand syntax. > http://www.w3.org/TR/css3-background/#the-border-radius > > While non-shorthand border-*-radius properties have the following syntax > > Value: <length> <length>? > > where whitespace is the separator between horizontal and vertical radius, > the following shorthand syntax (comma separated) would be more natural > and consistent > > Value: <length> <length>? [ , <length> <length>? ]{0,3} > > (it means: <'border-top-left-radius'>, <'border-top-right-radius'>, > <'border-bottom-right-radius'>, <'border-bottom-left-radius'> ) > > rather than the current CSS3 draft's syntax > > Value: <length>{1,4} [ / <length>{1,4} ]? > > (it means: <'border-top-left-radius-X'> <'border-top-right-radius-X'> > <'border-bottom-right-radius-X'> <'border-bottom-left-radius-X'> > / <'border-top-left-radius-Y'> <'border-top-right-radius-Y'> > <'border-bottom-right-radius-Y'> <'border-bottom-left-radius-Y'> ) > > where '/' is used for separator between horizontal and vertical radii, > and the comma separated syntax would be upper compatible with the old > draft's border-radius syntax > http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-border-radius > > Name: border-top-right-radius, border-bottom-right-radius, > border-bottom-left-radius, border-top-left-radius, > border-radius > Value: <length> <length>? > > that was already implemented by some vendors (including webkit, Prince, > Antenna House). > > Is it too late to reconsider about the border-radius shorthand syntax? The shorthand in the draft has nice repeating characteristics if you omit values. The comma in CSS syntax is also usually used in a different way. Either as alternatives or multiple values. In addition, the experimental implementations so far all use a prefix like they should, right? -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
Received on Thursday, 8 January 2009 10:34:15 UTC