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

Re: % is not a valid unit for border-width

From: Matthew Wilcox <elvendil@gmail.com>
Date: Fri, 20 Jan 2012 21:48:32 +0000
Message-ID: <CAMCRKiJM8vC=xZtEDRUNR0eqdM3riiAk7v_eCggFqAqjWVvxvA@mail.gmail.com>
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Brian Manthos <brianman@microsoft.com>, "L. David Baron" <dbaron@dbaron.org>, Lea Verou <leaverou@gmail.com>, "www-style@w3.org" <www-style@w3.org>
The argument for % on border width is because that provides consistency:
you expect to be able to use it because you can use it on everything else.

It's not about whether some other technique might work or not. Why does the
author need to resort to calc() when the expected and logical behaviour is
simply to continue using % like you have for everything else?



On 20 January 2012 20:34, Sylvain Galineau <sylvaing@microsoft.com> wrote:

>
> [Tab Atkins Jr.:]
> >
> > On Fri, Jan 20, 2012 at 12:14 PM, Brian Manthos <brianman@microsoft.com>
> > wrote:
> > > Does calc in border-width help?
> >
> > Given that his reason for not wanting to use box-sizing was that it
> > wouldn't work in old browsers, I don't think calc() would help.  ^_^
> >
> Not sure I follow. Old browsers don't support % border-width either so
> you'll need a newer browser anyway, won't you?
>
>
Received on Friday, 20 January 2012 21:49:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT