[CSSOM] resolved value for top/left/bottom/right doesn't match most browsers

I believe the CSSOM spec should be amended to include top/left/bottom/right
in the list of properties that return used value when display is not "none".

Currently, IE, FF, and Opera return the "used value" for
top/left/bottom/right when "display" is not "none". Webkit returns the
"computed value".

There is an open bug for this in Webkit to do the same as the other
browsers: https://bugs.webkit.org/show_bug.cgi?id=29084 . One source of
hesitation (and rightfully so) is that the spec currently says this is the
correct behavior.

There are also open bugs for this in popular JS libraries:
http://bugs.jquery.com/ticket/10639
http://yuilibrary.com/projects/yui3/ticket/2529799

Having the used value returned is a very useful operation. It's why JS libs
are asking for it and a majority of browsers are doing it this way. It'd be
great if the spec matched this reality.

I welcome any and all comments.

Mike Sherov
Lead Programmer
SNAP Interactive, Inc.
Ticker: STVI.OB

Sent Via Mobile: Please excuse my grammar, tone, and punctuation. My thumbs
can't create flowery prose.

Received on Wednesday, 14 March 2012 12:45:40 UTC