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

Re: [css4-background] border-top-radius etc

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 12 Oct 2012 09:45:24 -0700
Message-ID: <CAAWBYDCJsp2TZ3ax-DrOi1tbxm+34ZUOxntSRjoKGEdLWr6x7g@mail.gmail.com>
To: Lea Verou <lea@w3.org>
Cc: www-style list <www-style@w3.org>
On Thu, Oct 11, 2012 at 6:51 PM, Lea Verou <lea@w3.org> wrote:
> It's incredibly common that authors need to specify both the top-left and
> top-right border radii or both the bottom-right and bottom-left corners etc
> (think of tabs, split buttons and other common UI elements). In these cases,
> they have to do something like:
>
> border-top-left-radius: .5em;
> border-top-right-radius: .5em;
>
> which is not too bad, but is repetitive. Instead, it would be much better if
> we could use the following shorthands:
>
> border-top-radius
> border-right-radius
> border-bottom-radius
> border-left-radius
>
> Which would accept values with the following syntax:
>
> [ <length> | <percentage> ]{1,2} [ / [ <length> | <percentage> ]{1,2} ]?
>
> i.e. like border-radius, but with less values.
>
> Thoughts?

Sounds fine to me.  Convenience shorthands are good.

~TJ
Received on Friday, 12 October 2012 16:46:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT