Commit Graph

52 Commits

Author SHA1 Message Date
Colin Snover
2ca3659895 Prevent IE from throwing errors when setting RGBA values. Fixes #5509. 2010-10-09 10:42:01 -04:00
Colin Snover
06c505d851 Make sure setting opacity does not clobber other inline filters. Fixes #7101. 2010-09-30 11:24:59 -07:00
John Resig
9190d4fd60 Make sure that mixed case alpha filters are handled correctly in IE. Fixes #5632. 2010-09-28 08:57:20 -07:00
John Resig
558d96b42a Make setting .css(name, undefined) a no-op. Fixes #4388. 2010-09-28 08:53:09 -07:00
jeresig
0be7f4eb4f Make sure that opacity is being reset properly on a show animation. Additionally expose jQuery.isNaN from the data module. 2010-09-27 11:51:01 -04:00
jeresig
0da700a4d0 We can just use isNaN for this check in the IE opacity code. 2010-09-27 10:53:29 -04:00
jeresig
6dd2dc4270 Make sure the currentStyle property exists before attempting to access it. 2010-09-27 10:38:13 -04:00
John Resig
e3463946e1 Make sure that non-px values aren't manipulated before input to height/width. 2010-09-21 17:12:42 -04:00
John Resig
77e310b906 Simplifying the camelCase logic used in the CSS and Effects modules. 2010-09-17 14:53:10 -04:00
John Resig
6541eb9d80 Cleaning up some un-needed CSS code and adding back a temporary (deprecated) curCSS method. 2010-09-17 14:41:28 -04:00
John Resig
d1f3dc9a04 Make sure that empty height/width values are still set. 2010-09-17 13:51:12 -04:00
jeresig
37b607d281 Split apart jQuery.css into jQuery.css (computed values) and jQuery.style (currently set values). 2010-09-16 10:00:56 -04:00
John Resig
2bda99c18a Making some more adjustments to handle auto CSS properties. 2010-09-13 18:00:28 -04:00
jeresig
8b7015987c Only set height/width if it's a non-negative number (don't set it to 0). 2010-09-09 16:34:15 -04:00
jeresig
c168c30a6a Another logic bug caught by furf in ad950c8c59. 2010-09-09 16:29:26 -04:00
jeresig
c36596ea58 Make sure that the CSS hook getter isn't called if a forced computed style is done. 2010-09-09 16:26:30 -04:00
jeresig
7c8588530a Make sure that string values are returned from the height/width CSS properties. 2010-09-09 15:42:38 -04:00
jeresig
ad950c8c59 Landing a bunch of bug fixes from furf's pull request at eefcbaebb31b89b5eb360cd5ec6165b89c84e75f. 2010-09-09 15:33:06 -04:00
jeresig
a44ec40277 Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011. 2010-09-08 12:00:29 -04:00
John Resig
b920f0aeb4 Broke more of the property-specific CSS logic out of the jQuery.css() function. 2010-09-05 11:01:27 -04:00
John Resig
920099b29c First pass at unifying the various CSS methods in jQuery (jQuery.style, jQuery.curCSS, and jQuery.css are now all under jQuery.css). 2010-09-05 10:17:18 -04:00
John Resig
2912f8ab95 Broke apart some of the browser-specific logic for CSS handling. 2010-09-05 00:04:37 -04:00
John Resig
426045cc74 Some more minor formatting tweaks. 2010-09-04 23:34:52 -04:00
John Resig
1970154c3b Tweaking the formatting from the previous commit. 2010-09-04 23:28:17 -04:00
Brandon Aaron
65b24861bc First look at css hooks. These hooks provide a way to change how jQuery handles getting and setting certain css properties. This means normalizing properties like background-position can easily be done via plugins.
They are similar in concept to the special event hooks. Return false from the hook to revert control back to jQuery's normal processes for getting and setting certain css properties.
2010-09-02 21:06:40 -05:00
John Resig
5673e4bc3a Only attempt to use the IE technique for setting opacity if the filter property exists (otherwise fallback to the standards-compatible technique). 2010-08-26 12:51:37 -04:00
jeresig
8effe3a7de Made it so that you no longer need to build jQuery in order to run the test suite (but you'll still need a checkout of QUnit and Sizzle, at least). 2010-03-23 12:12:16 -04:00
jeresig
dcf0fa5048 More changes to get jQuery in line with JSLint. 2010-03-01 21:24:49 -05:00
jeresig
a18f682012 Made some code tweaks related to running jQuery through JSLint (thanks to Lorin Larson for the JSLint run). 2010-03-01 12:44:56 -05:00
jeresig
3776cbe314 Standardize on using double-quotes for string literals. 2009-12-21 20:13:16 -05:00
jeresig
61e37d4149 Made a number of spacing changes to bring the code more-inline with the jQuery Core Style Guideline. 2009-12-21 19:58:13 -05:00
John Resig
cf72fba64f Make sure that the defaultView exists before attempting to get at the computedStyle (makes it easier to hide items that don't have a view). Fixes #5619. 2009-12-09 20:58:49 -08:00
John Resig
4e9fed3b16 Made sure that css('width') and height returned string values, not numerical values. Fixes #5627. 2009-12-09 20:51:58 -08:00
jeresig
aae0617c83 Made sure that css() in IE handles negative non-px values correctly. Fixes #3331. 2009-12-05 15:12:02 -05:00
jeresig
6071e939c7 Minor syntactical changes to :visible and :hidden. 2009-12-05 15:02:45 -05:00
Yehuda Katz
d684122be0 Fixes a bug I introduced 2009-12-04 18:18:43 -08:00
jeresig
47293ebe15 Removing unnecessary parens from :hidden. 2009-12-03 11:59:59 -05:00
Yehuda Katz
64e4a879f9 Fix css("opacity") to not clobber other filters in IE. Closes #4707. 2009-12-01 11:40:28 -08:00
Karl Swedberg
a5efe9d3a6 added missing radix parameter for parseInt() 2009-11-28 04:09:14 +08:00
John Resig
449e099b97 Landing tweak from 'haruka' that fixes non-pixel fontSize values in IE. Fixes #760. 2009-11-11 14:17:16 -05:00
John Resig
bbffc99f7c Moved a bunch of methods out of the jQuery-specific Sizzle code into more-appropriate files, in jQuery itself. 2009-10-26 18:07:57 -04:00
Ariel Flesler
d1285504fb jquery core: Closes #5189. Added a generic function to handle getting/setting key-value/setting a hash. 2009-09-09 21:14:28 +00:00
John Resig
627a32cea2 Broke out some of the inline RegExp from css.js. Goes towards fixing #4111. 2009-07-19 16:13:45 +00:00
John Resig
4d1f15c351 Fixed various formatting issues in css.js. 2009-07-19 16:08:17 +00:00
John Resig
f57d93bf18 Move cases of .replace(re, Function) out from inline (to avoid being redeclared on every use). Fixes #4114. 2009-07-19 15:57:43 +00:00
John Resig
0d5c3a68a0 Standardizing on .test() and .exec() - moving away from using .match() for RegExp. Fixes jQuery bug #4113. 2009-07-19 13:21:51 +00:00
Yehuda Katz
e8eff25f3b Added test for css(String, Function) and css(Object) where values are Functions; fixed css(Object) 2009-07-12 18:31:26 +00:00
Brandon Aaron
ed087197ce tidy up fix for #3981, thanks matt kruse 2009-05-14 18:46:58 +00:00
Brandon Aaron
ec3ebd3e8a opacity is now retrieved from stylesheet in IE. fixes #3981 2009-05-14 14:44:31 +00:00
Brandon Aaron
6a049246a1 fix for #4216. css now ignores negative numbers for width and height when passed an object of props and vals. 2009-04-22 05:23:53 +00:00