[Laszlo-dev] [JIRA] Updated: (LPP-7655) dhtml: Visual artifacts and placement issues around shadow artwork

P T Withington ptw at laszlosystems.com
Fri Jan 23 03:32:28 PST 2009


On 2009-01-23, at 03:57EST, Max Carlson wrote:

> P T Withington wrote:
>> On 2009-01-20, at 23:44EST, Max Carlson (JIRA) wrote:
>>> Details: Use Math.round() instead of Math.floor() for CSS  
>>> positioning.
>> Just curious, CSS does not allow fractional position values?
>
> http://www.w3.org/TR/CSS21/syndata.html#value-def-length says  
> decimals are allowed, but I seem to remember it tripping up some  
> browsers when we let them through...

Yeah, it must have, but it's too bad we did not make that a quirk,  
because surely there can be sub-(w3c)pixel positioning on super hi-res  
displays.

> Also, it's bad for memoization, but that's another can of worms.

Memoization is definitely a can of worms, but surely if you are  
memoizing, you memoize on the actual input value of the method, not on  
some canonicalized value?


More information about the Laszlo-dev mailing list