Ticket #8584 (closed bug: plugin)
Cannot remove clip CSS property from an element in IE
|Reported by:||j@…||Owned by:||j@…|
For a demonstration try the following example in IE: http://jsfiddle.net/p5Ckf/
IE will throw an exception when el.style.clip = '' is set (which I think jQuery is catching, but either way, the clip is not unset).
IE <= 8 also does not support el.style.removeProperty, so the only way that I have been able to successfully remove the clip property is like so:
el.attr('style', el.attr('style').replace(/clip\: [^;]+;/i, ''))
Note that you can set the clip property to 'auto'. This does not remove it, obviously, but can be useful in certain situations. Unfortunately in my use case I have descendent content with negative margins which still get clipped when clip is set to 'auto', so I really do need to remove the clip.
- Status changed from new to closed
- Resolution set to invalid
- Status changed from closed to reopened
- Resolution invalid deleted