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

% is not a valid unit for border-width

From: Matthew Wilcox <elvendil@gmail.com>
Date: Thu, 5 Jan 2012 11:45:58 +0000
Message-ID: <CAMCRKiJ04P-1XOWb92zYM_cbw+PjbYkn7HpGfr0ozBL4Q_Mp3g@mail.gmail.com>
To: www-style@w3.org
Please can we get it to be a valid unit?

It makes no sense to arbitrarily limit what a valid length unit is on
a given element. A length is a length. Why should % not be valid as a
unit on border-width but valid everywhere else?! It was proposed years
ago ( http://lists.w3.org/Archives/Public/www-style/2008Jun/0032.html
) and shot down despite the use-case being stated. At the moment those
of us doing nice % based responsive designs can’t use a border in
them. Not without the math breaking and the layout screwing up
entirely. That’s caught me out on every single responsive design I’ve
done, and I’ve had to adjust the design each time.
Received on Thursday, 5 January 2012 11:46:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:09 UTC