jQuery.cssProps is useless in all browsers but IE6/7/8
|Reported by:||lrbabe||Owned by:||lrbabe|
jQuery.cssProps is an object in which you can "Add in properties whose names you wish to fix before setting or getting the value".
It is used by jQuery core to map the float property to "cssFloat" or "styleFloat" depending on the browser.
Unfortunately, the current implementation is not as generic as it is supposed to be: browsers implementing window.getComputedStyle will completely ignore the "fixed property" in jQuery.css(). It works well for the 'float' property but makes jQuery.cssProps useless for other properties.
It could be really useful to create basic cssHooks:
var vendorPrefixedTransform = detectFeature('transform'); jQuery.cssProps.transform = vendorPrefixedTransform;
Change History (8)
comment:2 Changed 6 years ago by rwaldron
- Component changed from unfiled to css
- Owner set to lrbabe
- Status changed from new to pending