Bug Tracker

Opened 13 years ago

Closed 12 years ago

#6196 closed bug (invalid)

IE error in curCSS on pixel recalculation

Reported by: Max_B Owned by: Max_B
Priority: undecided Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: curCSS IE rnumpx Cc:
Blocked by: Blocking:


The code block to recalculate pixel values raise an error on IE(8), when the current property is margin with a composite value like "5% auto auto 20px".

Line 4724 of jquery-1.4.2.src.

As I'm not sure of the best workaround, I have added a check on the property like this: line 4718: if ( !rnumpx.test( ret ) && rnum.test( ret ) && camelCase != 'margin') {

Change History (3)

comment:1 Changed 13 years ago by dmethvin

Component: unfiledcss

The problem is because the value is from a shorthand property. Not sure how to handle this either; perhaps return a string for any property with embedded spaces?

comment:2 Changed 12 years ago by snover

Owner: set to Max_B
Priority: undecided
Status: newpending

Please provide a working test case on jsFiddle demonstrating this issue. Thanks!

comment:3 Changed 12 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.