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

Re: about the use of pixels as a unit for typography

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 12 Oct 2010 11:18:31 -0700
Message-ID: <AANLkTikJy8VOXesGwS5hwRfyzNmJjawMPFDe0fa_fSu4@mail.gmail.com>
To: robert@ocallahan.org
Cc: Peter Moulder <peter.moulder@monash.edu>, www-style@w3.org
On Tue, Oct 12, 2010 at 11:15 AM, Robert O'Callahan
<robert@ocallahan.org> wrote:
> On Wed, Oct 13, 2010 at 7:01 AM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>>
>> On Tue, Oct 12, 2010 at 5:13 AM, Peter Moulder <peter.moulder@monash.edu>
>> wrote:
>>
>> > When changes to units in CSS were last being discussed, I did wonder
>> > whether we
>> > should drop the "whole number of device pixels" recommendation from
>> > syndata.html, such that a px would equal a reference px.  The main
>> > reason I
>> > didn't in the end post this suggestion was concern that bitmapped images
>> > such
>> > as gifs (especially small ones) would still be with us for a long time.
>>
>> Indeed they will be, but more than that, rendering *any* content to
>> anything other than whole device pixels is a big perf hit.  It would
>> make painting unacceptably slow.
>
> It's actually not bad if you can use the GPU for image scaling (e.g. Firefox
> and IE9 drawing with D2D).
>
> I think that recommendation should be dropped.

Hm, ok.  What about things like border-widths?  Should those still be
snapped to whole px in the actual value?

~TJ
Received on Tuesday, 12 October 2010 18:19:26 GMT

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