[Laszlo-dev] Firefox and modiying CSS properties

Max Carlson max at openlaszlo.org
Mon Aug 3 15:45:37 PDT 2009


I think only webkit is nice enough to support both...

P T Withington wrote:
> The names like `-moz-transform` work in a CSS style sheet, or you set 
> the style as a string.  Because `-moz-transform` is not a valid 
> Javascript identifier, the convention is that the Javascript properties 
> corresponding to a CSS style name are CamelCased the mapping is 'hyphen 
> followed by letter' becomes 'uppercase letter'.
> 
> I _thought_ that most browsers supported using the '[' operator and the 
> actual CSS string as an equivalent form, but maybe that is not the case.
> 
> On 2009-08-03, at 16:41EDT, Raju Bitter wrote:
> 
>> Thanks, but what is the reason for that? On the Mozilla page the 
>> property is listed as -moz-transform, as you can see here:
>> https://developer.mozilla.org/en/CSS/-moz-transform-origin
>>
>> Is this OpenLaszlo specific?
>>
>> - Raju
>>
>> On Aug 3, 2009, at 9:52 PM, André Bargull wrote:
>>
>>> You need to use __LZdiv.style["MozTransform"] instead of 
>>> __LZdiv.style["-moz-transform"], then it'll work.
>>>
>>> - André
>>>
>>>> Max,
>>>>
>>>> I added support to Firefox and moz-transform: rotation(90deg) to 
>>>> the  kernel, but it doesn't work. I can see the value being set, but 
>>>> the  visual object doesn't rotate.
>>>>
>>>> Is there an event that needs to be send for FF to re-render the object?
>>>>
>>>> - Raju
>>>>
>>
>>
> 
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org



More information about the Laszlo-dev mailing list