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: Thu, 5 Jan 2012 13:42:44 +0000
Message-ID: <CAMCRKiLtQD66+ojRK093eFbwj8U9cUaAgYJTgAS0k=JQQF4dgw@mail.gmail.com>
To: Lea Verou <leaverou@gmail.com>
Cc: www-style@w3.org
http://www.w3.org/TR/CSS2/syndata.html#length-units would seem to
indicate that % is a length, and
http://msdn.microsoft.com/en-us/library/ms537660(v=vs.85).aspx
expressly states that it is a length unit. Regardless of the naming,
it is used as one and it makes no sense that border-width does not
adhere to the behaviour of every other property that takes length
units (width, padding, etc).

Using calc and box-sizing to get around this seems "quirky" at best,
and likely to confuse (IMO).
Received on Thursday, 5 January 2012 16:34:55 GMT

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