Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#11919 closed bug (invalid)

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:


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.

Change History (3)

comment:1 Changed 11 years ago by mikesherov

Owner: set to elwayman02
Status: newpending

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

comment:2 Changed 11 years ago by trac-o-bot

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!

comment:3 Changed 10 years ago by Me

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...

Note: See TracTickets for help on using tickets.