diff options
author | jeresig <jeresig@gmail.com> | 2009-12-05 15:12:02 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-05 15:12:02 -0500 |
commit | aae0617c834a030902cd8da2714f852d6a1431be (patch) | |
tree | 45507dfa38ca727293e8d4c89b21ba089b4f230b /src/css.js | |
parent | 6071e939c7025ff7096673c93eaa7e2d78afbb6b (diff) | |
download | jquery-aae0617c834a030902cd8da2714f852d6a1431be.tar.gz jquery-aae0617c834a030902cd8da2714f852d6a1431be.zip |
Made sure that css() in IE handles negative non-px values correctly. Fixes #3331.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js index a16298d6c..c36b6dcc2 100644 --- a/src/css.js +++ b/src/css.js @@ -5,8 +5,8 @@ var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, rfloat = /float/i, rdashAlpha = /-([a-z])/ig, rupper = /([A-Z])/g, - rnumpx = /^\d+(?:px)?$/i, - rnum = /^\d/, + rnumpx = /^-?\d+(?:px)?$/i, + rnum = /^-?\d/, // cache check for defaultView.getComputedStyle getComputedStyle = document.defaultView && document.defaultView.getComputedStyle, |