Thanks for the information -- I would never have considered looking at
FF for the bug.
~ ~ David
Karl Rudd wrote:
Actually "background" is the "shorthand" property, "backgroundPostion"
is the "fully qualified" property.
There is/was a bug in Firefox:
Bug 316981 – background-position pro
Actually "background" is the "shorthand" property, "backgroundPostion"
is the "fully qualified" property.
There is/was a bug in Firefox:
Bug 316981 – background-position property is not available through
the CSS DOM interface
https://bugzilla.mozilla.org/show_bug.cgi?id=316981
Karl Rudd
On
This is what css calls a shorthand property. It's used for setting. Browsers
differ in their treatment of it as a getter. jQuery doesn't (yet) normalize
this. See these threads for more info:
element.css("background") returns undefined
http://groups.google.com/group/jquery-en/browse_thread/thread/
Weird. That must be a bug. You can set the background position...
$('.XXX').css('backgroundPosition', '0 50%');
and then get it ...
$('.XXX').css('backgroundPosition');
// returns "0pt 50%"
but you can't get it without setting first.
Hmmm.
--Karl
_
Karl S
DaveG wrote:
How do I get the background-position?
$('.XXX').css("background_position");
$('.XXX').css("background-position");
$('.XXX').css("backgroundPosition");
...do not work. Other variants like "background-color" work fine.
The problem seems to be that I'm trying to get the background
5 matches
Mail list logo