Not ;-) Your particular example won't work with CSS property inheritance.

It's really as simple as converting all foo-bar strings to fooBar (in
the backend) - nothing more than that. This is a known bug and listed
in the bug tracker - I'm just getting around to fixing it.

--John

> my idea: I'll change the css() function, so you can supply the correct css
> definition or the javascript attribute, i.e:
>
> $().css("zIndex", "2")
> And
> $().css("z-index", "2")
>
> will do the same. This is achieved by doing the following on the second
> method:
>
> 1) First, try to read the attribute from DOMelement.z-index, if this returns
> null, then
> 2) get the style string via DOMelement.getAttribute("style"), which returns
> the proper css definitions,
> 3) split into array via split(";")
> 4) if z-index is found, change it and merge the array again, then do
> setAttribute("style", mergedArray)
> 5) if z-index is not found, add it to the array, merge it and to the same.
>
> Cool or not?

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to