W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Re: [css-fonts] What does font-size-adjust for '0' look like?

From: Zack Weinberg <zackw@panix.com>
Date: Wed, 18 Mar 2015 17:29:02 -0400
Message-ID: <CAKCAbMg6qrWQnd6FqJbUBY-rEvqciRNrkGr7=WiiLJ5RxYS=jQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: ChangSeok Oh <changseok@gnome.org>, www-style list <www-style@w3.org>
On Wed, Mar 18, 2015 at 4:39 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> Firefox's behavior seems unnecessary.  As you note, a font-size-adjust
> value of zero just means that the x-height of all fonts should be
> zero, which means the "adjusted font size" should be zero.  There's
> not even a singularity there, at least using the equation in the spec.
> There shouldn't be a special behavior at 0 at all here.  (Maybe it's
> an accident, caused by doing a falsey check?)

It looks like internally 'none' is being represented as 0.0f.  I agree
this is a bug in Firefox and have filed
https://bugzilla.mozilla.org/show_bug.cgi?id=1144885 .
Received on Wednesday, 18 March 2015 21:29:26 UTC

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