There is not a public API for doing this. getRulesCache only gets the rules that apply to a particular node.

What are you really trying to do?

There is a Debugger function Debug.explainStyleBindings that might be of use, if you are just trying to look at the styles that apply to a node.

On 2009-03-19, at 20:27EDT, Antun Karlovac wrote:

In CSS in OpenLaszlo, you can kind-of define a CSS class like this:

Skin[name="mySkin"] {
   backgroundColor: #ff0000;
   textColor: #00ff00;
}

Does our implementation of CSS create an object somewhere that represents this selector?

Basically, I'm trying to get a hold of the CSS properties that are defined for Skin[name="mySkin"]. Is LzCSSStyle.getRulesCache() the only way to go?

Thanks,

Antun


Reply via email to