Skip to main content

Bug Tracker

Side navigation

#7736 closed bug (fixed)

Opened December 09, 2010 01:24PM UTC

Closed February 18, 2011 09:03PM UTC

Precising rfxnum regex

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

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.

Attachments (0)
Change History (5)

Changed December 09, 2010 02:47PM UTC by jitter comment:1

_comment0: Thanks for taking the time to contribute to the jQuery project by writing a bug report. \ \ IMHO this isn't a bug as the [http://api.jquery.com/animate/ animate() documentation] clearly states: \ > All animated properties should be a single numeric value \ \ But 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 [https://github.com/brandonaaron/jquery-cssHooks/ jquery-cssHooks plugin] which already has many additional hooks and also a transform hook which might work out for you.1291906080804100
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.

Changed December 09, 2010 03:05PM UTC by jitter comment:2

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

https://github.com/jquery/jquery/pull/125

Changed February 07, 2011 12:20AM UTC by jitter comment:3

component: unfiledcss
milestone: 1.61.5
priority: undecidedlow

This was landed already for 1.5b1.

Changeset: 796d25cf07ad63e2008ff4b70db182d33a3533dd

Changed February 18, 2011 09:03PM UTC by jitter comment:4

milestone: 1.5
resolution: invalid
status: closedreopened

Changed February 18, 2011 09:03PM UTC by jitter comment:5

milestone: → 1.5
resolution: → fixed
status: reopenedclosed