Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7736 closed bug (fixed)

Precising rfxnum regex

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


I'm trying to create a new cssHooks for the transform scale property, and I want to be able to pass values such as "0.5,2" (half the scale on X axis and twice the scale on Y axis).

Currently, when using such value, the rfxnum regex will be matched, "0.5" will be considered to be the value and ",2" the unit. Additionaly, jQuery will waste time trying to calculate the start value.

Change History (5)

comment:1 Changed 12 years ago by jitter

Resolution: invalid
Status: newclosed

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

IMHO this isn't a bug as the animate() documentation clearly states:

All animated properties should be a single numeric value

As an alternative you should be able to use scaleX and scaleY instead.

Actually instead of writing this hook on your own you might want to check out the jquery-cssHooks plugin which already has many additional hooks and also a transform hook which might work out for you.

Last edited 12 years ago by jitter (previous) (diff)

comment:2 Changed 12 years ago by jitter

You could have added a note that you made a pull request regarding this too


comment:3 Changed 12 years ago by jitter

Component: unfiledcss
Milestone: 1.61.5
Priority: undecidedlow

This was landed already for 1.5b1.

Changeset: 796d25cf07ad63e2008ff4b70db182d33a3533dd

comment:4 Changed 12 years ago by jitter

Milestone: 1.5
Resolution: invalid
Status: closedreopened

comment:5 Changed 12 years ago by jitter

Milestone: 1.5
Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.