[Laszlo-user] Where in the runtime would a CSS style like this be found: Skin[name="mySkin"]

P T Withington ptw at pobox.com
Sat Mar 21 08:47:11 PDT 2009


On 2009-03-20, at 21:56EDT, P T Withington wrote:

> On 2009-03-20, at 18:46EDT, Antun Karlovac wrote:
>
>> Debug.explainStyleBindings didn't work at all for me. Was it added  
>> after the 4.0.x build of OpenLaszlo that Webtop uses?
>
> Ah, it may be only in 4.2.  I guess I added that when I was  
> optimizing the code, but must not have ported that back to 4.0.x.   
> If it's not in the Debugger doc, it is probably not there...  Bummer.

It's only really in _trunk_.  Even in 4.2 it is only partially  
implemented.  Sorry for the mis-direction.

Here's an example of it's usage:

http://labs.openlaszlo.org/trunk-nightly/docs/developers/programs/color-$3.lzx?lzt=swf

Perhaps more interesting is to look at some of the tests in test/style/ 
metasuite.lzx, e.g.:

lzx> Debug.explainStyleBindings(gEverest)
/* @attrselector/attrs.lzx#2 (specificity 10, order 9) */
[group=everest] {
   innercolor: 2447660;
}
/* @elementselector/elementselector-test.lzx#0 (specificity 1, order  
56) */
designerview {
   innercolor: 1985909;
   miscdata: 'uc berkeley';
   width: 279;
}
/* @compiler/stylesheetelement-test.lzx#0 (specificity 1, order 11) */
designerview {
   innercolor: 16711680;
   miscdata: 'uc berkeley';
   width: 279;
}
/* @designerview.lzx#0 (specificity 1, order 1) */
designerview {
   bordercolor: 6631189;
   borderwidth: 10;
   height: 50;
   innercolor: 11839631;
   labelcolor: 0;
   textinset: 2;
   width: 50;
}

«<designerview>#40| #gEverest»
lzx> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20090321/746f0780/attachment.html


More information about the Laszlo-user mailing list