Re: [whatwg] width and height

2010-03-28 Thread Ian Hickson
On Sun, 28 Mar 2010, Perry Smith wrote: > > I'm trying to piece some things together. I end up with this idea: > > ele.style.height returns the "used" value if display is not set to none. ele.style.height should return the current specified value in the style="" attribute, which may or may not

Re: [whatwg] width and height

2010-03-28 Thread Boris Zbarsky
On 3/28/10 12:21 PM, Perry Smith wrote: ele.style.height returns the "used" value if display is not set to none. By "used" value I assume the CSSOM spec means the actual value used. It means "used value" as defined in the CSS specification. See CSS 2.1 section 6.1.3. I see a few old messag

[whatwg] width and height

2010-03-28 Thread Perry Smith
I'm trying to piece some things together. I end up with this idea: ele.style.height returns the "used" value if display is not set to none. By "used" value I assume the CSSOM spec means the actual value used. e.g. if the span takes up 100 pixels, it would return a value equivalent to 100