Skip to main content

Bug Tracker

Side navigation

#11919 closed bug (invalid)

Opened June 15, 2012 03:23PM UTC

Closed June 30, 2012 08:27AM UTC

Last modified June 20, 2013 11:12AM UTC

IE: jQuery .css() returns value in pixels instead of unit of measure provided by stylesheet

Reported by: elwayman02 Owned by: elwayman02
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

For example, if a div has a max-width of 97%, calling divObj.css("max-width") in Internet Explorer will return the computed number of pixels that percentage takes up currently, rather than the percentage itself. This only happens in IE, not in other browsers.

This seems like a related problem to #4296, but apparently the fix for that issue was not applied to other css attributes.

Attachments (0)
Change History (3)

Changed June 16, 2012 02:10AM UTC by mikesherov comment:1

owner: → elwayman02
status: newpending

Please provide a fiddle demonstrating the issue using the latest jQuery, not version 1.7.1.

Changed June 30, 2012 08:27AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Changed June 20, 2013 11:12AM UTC by Me comment:3

This bug is still here and very much annoying me.

Here is a fiddle to satisfy you: http://jsfiddle.net/FArLe/10/

The bug is in both the 1 and 2 branch of jQuery, but fiddle seems to have another error with the 2 branch in IE which makes it impossible to run in the first place...