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

Max Carlson max at openlaszlo.org
Fri Jan 23 04:47:37 PST 2009


P T Withington wrote:
> 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.

Agreed - can you file an improvement request to add a quirk?  I tested 
in Firefox 3 and it worked fine there..

>> 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?

Currently, both(!) the input and canonicalized values are stored and 
memoized for width/height/x/y in DHTML.  Eliminating one these will will 
be good!

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list