W3C home > Mailing lists > Public > www-style@w3.org > December 2010

[css3-transitions][css3-fonts] should font weights be interpolated?

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 22 Dec 2010 15:21:08 +1300
To: www-style@w3.org
Message-ID: <20101222022108.GE11105@wok.mcc.id.au>
The CSS3 Transitions spec currently lists font-weight as being of type
“number”.  Does this mean that a transition should interpolate between
values?  For example with:

  <style>span { transition: font-weight 5s; font-weight: 100 }</style>
    mySpan.style.fontWeight = 900;

should the property get values 100, 200, …, 800, 900 over the course of
the 5s?  I think I remember someone or some spec saying that these
numbers are really keyword values, and not really to be treated as
numbers.  If so, then I think interpolation shouldn’t happen.

Slightly relatedly, the CSS3 Fonts spec says for font-weight “Computed
value: see description”, but there is no explicit description of whether
normal computes to 400, etc.  It just says that normal has the same
meaning as 400.

Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 22 December 2010 02:21:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:54 UTC