W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2012

Re: [whatwg] Features for responsive Web design

From: Odin Hørthe Omdal <odinho@opera.com>
Date: Fri, 10 Aug 2012 12:06:47 +0200
To: whatwg@lists.whatwg.org
Message-ID: <op.witk1lq849xobu@odinho-fido.oslo.osa>
On Thu, 09 Aug 2012 18:54:10 +0200, Kornel Lesiński <kornel@geekhood.net>  
wrote:

> One stylesheet can be easily reused for   pixel-perfect 1x/2x layout,  
> but pixel-perfect 1.5x requires its own sizes incompatible with 1x/2x.
>
>> Apart from it possibly being a self-fulfilling prophecy – isn't this
>> too much premature “optimization” ?
>
> I think we can safely assume that authors will always want to prepare as  
> few assets and stylesheets as they can, and will prefer integer units to  
> fractional ones (1px line vs 1.3333px line).

I don't see the big problem, I think the spec is fine here. Yes it allows  
for putting a float there, but authors won't use it, so what's the  
problem? The spec already say you should use the number to calculate the  
correct intrinsic size, and the implementation will know what to do with a  
float number there if someone finds an actual use for it.

This isn't limiting it for the sake of making anything easier, it's not  
like "the x is an integer" is any easier than "the x is a float". And if  
you *do* somehow find a good use for it down the line (and I believe there  
might be, maybe 0.5x) it'll be there and work. No harm. :)

-- 
Odin Hørthe Omdal (Velmont/odinho) · Core, Opera Software, http://opera.com
Received on Friday, 10 August 2012 10:07:17 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:44 UTC