W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2006

[whatwg] return lowercase hex values for fillStyle and strokeStyle

From: Charles McCathieNevile <chaals@opera.com>
Date: Tue, 05 Sep 2006 13:54:10 +0200
Message-ID: <op.tfel0kciwxe0ny@widsith.local>
On Tue, 05 Sep 2006 10:39:33 +0200, Christoph P?per  
<christoph.paeper at crissov.de> wrote:

> *Anne van Kesteren*:
>> Instead of returning an uppercase six digit hex value I suggest  
>> returning a lowercase value for compatibility with what UAs (including  
>> IE) currently do
>
> It may be the right decision on compatibility grounds, but other than  
> that lowercase hexadecimal digits (0-9, a-f) are almost always a bad  
> choice, because a, c and e have no ascenders like every hindu-arabic  
> decimal digit has and thus make the number harder to read. This  
> obviously does not apply to fonts with old-style numerals aka. text  
> figures, where 0, 1 and 2 have neither ascenders (like 6 and 8) nor  
> descenders (like 3, 4, 5, 7 and 9), but those are rather unlikely to be  
> used in a programming environment.

I believe this, but I suspect that the gain in compatibility is well worth  
the minor loss in efficiency for people who are hand-coding.

Cheers

Chaals

-- 
   Charles McCathieNevile, Opera Software: Standards Group
   hablo espa?ol  -  je parle fran?ais  -  jeg l?rer norsk
chaals at opera.com          Try Opera 9 now! http://opera.com
Received on Tuesday, 5 September 2006 04:54:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:29 UTC