Bug Tracker

Modify

Ticket #4571 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

IE throws error when trying to set negative value to CSS padding property

Reported by: gal_ga Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: css,negative Cc:
Blocking: Blocked by:

Description (last modified by dmethvin) (diff)

When trying to modify a paddingTop (also padding or padding-top) with a negative value I get JavaScript error in Internet Explorer 7 (also IE 6).

example in the attached file.

Attachments

ie_err.html Download (715 bytes) - added by gal_ga 5 years ago.
IE throws error when trying to set negative value to CSS padding property

Change History

Changed 5 years ago by gal_ga

IE throws error when trying to set negative value to CSS padding property

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme
  • Description modified (diff)

Padding can't be negative, so the input to jQuery isn't correct. How would this be resolved? Putting a try/catch around this just masks the problem. The current behavior seems correct, I'd actually prefer that Firefox threw errors on invalid input too so that people wouldn't be sloppy.

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.