W3C home > Mailing lists > Public > www-style@w3.org > January 2009

[css3-background] border-radius shorthand syntax

From: MURAKAMI Shinyu <murakami@antenna.co.jp>
Date: Thu, 08 Jan 2009 08:28:18 +0900
To: www-style@w3.org
Message-Id: <20090108082646.C327.C598BCD7@antenna.co.jp>

I'm curious about the border-radius shorthand syntax.

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

    Name:  border-top-right-radius, border-bottom-right-radius, 
           border-bottom-left-radius, border-top-left-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?

Shinyu Murakami
Antenna House Formatter
Received on Wednesday, 7 January 2009 23:29:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:23 UTC