Which value is returned by Element.getStyle() getProperty() ?

2012-05-04 Thread yves
Hello All, My question seems trivial : what is the contract of Element.getStyle() getProperty() ? Of course the question relies on the GWT implementation, which is in Style.java : private native String getPropertyImpl(String name) /*-{ return this[name]; }-*/; Thus what is the javascript

Re: Which value is returned by Element.getStyle() getProperty() ?

2012-05-04 Thread Chris Price
I'd recommend starting here https://developer.mozilla.org/en/DOM/element.style On 4 May 2012 19:30, yves yves.ko...@gmail.com wrote: Hello All, My question seems trivial : what is the contract of Element.getStyle() getProperty() ? Of course the question relies on the GWT implementation,

Re: Which value is returned by Element.getStyle() getProperty() ?

2012-05-04 Thread yves
Thanks for this interesting link! I found, among others, 2 complementary answers: - element.style.getPropertyValue(styleName) gives the value defined in the style attribute of the element, as coded in the html file. - window.getComputedStyle(element, null).getPropertyValue(styleName) gives the