Bug Tracker

Modify

Ticket #6196 (closed bug: invalid)

Opened 3 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

Description

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

comment:1 Changed 3 years ago by dmethvin

  • Component changed from unfiled to css

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 3 years ago by snover

  • Owner set to Max_B
  • Priority set to undecided
  • Status changed from new to pending

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

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

  • Status changed from pending to closed
  • Resolution set to invalid

Automatically closed due to 14 days of inactivity.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.