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

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

From: Thomas Phinney <thomas.phinney@gmail.com>
Date: Wed, 22 Dec 2010 09:38:58 -0700
Message-Id: <8EBF3CA9-0161-4C6F-AF6F-C771FE8C4E51@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: Cameron McCormack <cam@mcc.id.au>
I believe that's an accurate assessment of CSS font weights (which also requires remapping actual font weights as they really are numbers and don't always fit those increments).

Sent from my iPhone

On Dec 21, 2010, at 19:21, Cameron McCormack <cam@mcc.id.au> wrote:

> 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>
>  <script>
>    mySpan.style.fontWeight = 900;
>  </script>
> 
> 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 17:04:33 GMT

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