Skip to main content

Bug Tracker

Side navigation

#8321 closed bug (invalid)

Opened February 18, 2011 08:09PM UTC

Closed March 05, 2011 08:09AM UTC

Last modified May 12, 2011 08:52PM UTC

css() units returned

Reported by: Keigl Owned by: Keigl
Priority: low Milestone:
Component: css Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

I noted a few examples of the issue that is causing problems for me already posted in the css() page on the jQuery site, but it doesn't seem that anyone has submitted this as a bug.

So, I also would be interested in seeing the actual value of CSS elements returned by th css() function. Such was the case in the most recent version of jQuery that my team has been able to utilize (version 1.4.2) and prior versions. NOTE: 1.4.3 was not tested by our team, we had missed an upgrade, and so moved directly to 1.4.4 and have now tested with 1.5.

Here's the problem with 1.4.4 and 1.5. In versions of jQuery before and including 1.4.2, when a value was called, for example $("#divel").css("width"), if the unit contained in the stylesheet was other than "px" (perhaps "em") the "em" value would be returned.

Ever since version 1.4.2 our team has been unable to upgrade to a newer version because many of our larger projects have been set up for "em", and now all that is being returned from such calls in new versions is "px" converted values.

It would sure be nice to be able to use the newest advances within jQuery again.

Attachments (0)
Change History (4)

Changed February 18, 2011 11:46PM UTC by jitter comment:1

component: unfiledcss
owner: → Keigl
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

Please submit a reduced test case, which reproduces the issue you are experiencing, on So that we can investigate this issue further. Also make sure to read the link given below, in order to provide a most useful bug report.

How to report bugs

Changed March 05, 2011 08:09AM 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 March 26, 2011 09:59AM UTC by Keigl comment:3

Link to jsfiddle displaying this issue:

Changed May 12, 2011 08:52PM UTC by anonymous comment:4

I am curious to learn whether or not this ticket is in the process of being re-opened? The issue raised remains valid despite the initial lack of an example with the submission. Also to update the ticket, the problem remains as of version 1.6.1.