Commit Graph

149 Commits

Author SHA1 Message Date
timmywil
75203de743 Optimize width/height retrieval (moved logic to getWH, removed adjustWH). Supplements #9441, #9300. 2011-06-06 23:35:16 -04:00
Mike Sherov
80ad14bd14 Add margin after checking width. Add tests. Fixes #9441. Fixes #9300. 2011-06-06 23:13:37 -04:00
timmywil
bdce86dc2e Move window/document test to dimensions for consistency 2011-05-25 19:59:29 -04:00
timmywil
edb2286544 Return null for outer/inner width/height calls on window/document. Fixes #7557. 2011-05-25 19:49:50 -04:00
rwldrn
408c98fb4b Landing pull request 383. Relocating jQuery.camelCase to core; Fixes #9368.
More Details:
 - https://github.com/jquery/jquery/pull/383
 - http://bugs.jquery.com/ticket/9368
2011-05-25 15:10:49 -04:00
timmywil
a5b7c0fa33 Style edits for pull request 375 2011-05-13 12:14:31 -04:00
avaly
cbbd7d28e1 Landing pull request 375. Added test case to support #9237 Fixes #9237.
More Details:
 - https://github.com/jquery/jquery/pull/375
 - http://bugs.jquery.com/ticket/9237
2011-05-13 12:09:49 -04:00
Rick Waldron
3d9445e3fc Landing pull request 340. Adds widows, orphans to cssNumber hash; includes tests. Fixes #8936.
More Details:
 - https://github.com/jquery/jquery/pull/340
 - http://bugs.jquery.com/ticket/8936
2011-04-22 00:02:08 -04:00
Jordan Boesch
35d9425969 removing regex 2011-04-15 08:53:37 -06:00
Jordan Boesch
c4d0cccecf revert to old code, bug is invalid 2011-04-15 07:48:50 -06:00
timmywil
d4b31a15ff Adds box-sizing check for IE9 inputs and buttons 2011-04-14 16:26:20 -04:00
jeresig
84712bd624 Fix formatting of pull 325. Fixes #4146. 2011-04-14 15:49:15 -04:00
Jordan Boesch
e64d3d4e57 fixing bug 4146 - round 2! 2011-04-13 22:30:30 -06:00
John Resig
978c065555 Merge branch 'Sub_Naming' of https://github.com/timmywil/jquery into timmywil-Sub_Naming
Conflicts:
	src/core.js
	src/css.js
	src/event.js
2011-04-12 16:05:40 -04:00
louisremi
02e0047e92 resolve more conflicts 2011-04-12 11:39:21 +02:00
louisremi
a5604aedb7 merge with master and resolve more conflicts 2011-04-12 11:29:25 +02:00
jeresig
0ff4c69929 Some minor code cleanup. 2011-04-12 00:38:48 -04:00
jeresig
db80ad94d5 Merge branch 'fix_8402' of https://github.com/lrbabe/jquery into lrbabe-fix_8402 2011-04-12 00:37:51 -04:00
jeresig
430d9e0b06 Merge branch 'fix_8403' of https://github.com/lrbabe/jquery into lrbabe-fix_8403 2011-04-12 00:35:51 -04:00
louisremi
581fa82420 double quotes, again 2011-04-11 21:44:29 +02:00
louisremi
cccd092fe0 first batch 2011-04-11 21:43:43 +02:00
louisremi
272b8d69dc replace cssPropsAware branch 2011-04-11 20:33:52 +02:00
Dan Heberden
44a3b5839e Improve relative string performance in .css and some code cleanup 2011-04-04 16:48:24 -07:00
Dan Heberden
123dd72e80 Bug 7345; Add support for explicit/relative string values in .css - modified from original pull req by brandonaron #78 2011-04-04 11:21:15 -07:00
John Resig
b89b66657c Merge branch 'fix_8346' of https://github.com/lrbabe/jquery into lrbabe-fix_8346 2011-03-30 14:54:52 -04:00
Richard Worth
735a949a06 Further fix for #3333, refactored marginRight css hook to use jQuery.swap and computed. Thanks timmywil 2011-03-24 19:55:55 -04:00
jeresig
53697d10ef Fix missing semicolon. 2011-03-24 19:36:38 -04:00
Richard Worth
c3c507e900 Added css hook to work around bug in WebKit computed margin-right. Fixes #3333 - .css("marginRight") is incorrect in WebKit 2011-03-24 15:41:46 -04:00
louisremi
025f2c63e4 fixing both #8403 and #8401: jQuery \"bulldozes\" other IE filters when setting opacity 2011-03-01 00:54:15 +01:00
louisremi
e27fcf42ce comments for workarounds are always welcome. 2011-02-23 15:55:13 +01:00
louisremi
c5264ce196 fix the regular expression that turns camel-case properties to lower-case ones for IE9. Fixes #8346 2011-02-23 15:53:29 +01:00
Anton M
6b08d88d04 Fix some whitespace issues. 2011-02-15 22:09:09 +01:00
Timmy Willison
82626799ca Changed $.sub internals to match sub naming, added some more spacing in some areas for readability 2011-02-06 19:34:57 -05:00
rwldrn
8099cdce80 Bug #7608 elem.runtimeStyle throws exception in Opera 2011-01-05 13:32:59 -05:00
jeresig
efaf375e56 Need to also handle the case where 'auto' is being returned, as in Firefox. Follow-up to #7395. 2010-11-09 23:33:18 -05:00
jeresig
3394d32ea7 Maintain returning 0px from width/height for disconnected nodes for backwards compat, for now. Fixes #7395. 2010-11-09 23:29:26 -05:00
John Resig
fb48ae8e6c Make sure that when multiple variables are being declared that assignments are each done on their own line. 2010-11-09 11:09:07 -05:00
jeresig
d9478954b9 Limit the scope of the CSS 'auto' change to just height/width. Fixes #7393. 2010-11-03 18:59:55 -04:00
jeresig
fb4445070c Opera doesn't give height/width of display: none elements with getComputedStyle but does with currentStyle - fall back to that if it exists. 2010-11-03 15:39:28 -04:00
jeresig
9d1bfeb7ff Make sure that accessing computed CSS for elements returns 'auto' instead of '' consistently. Fixes #7337. 2010-11-01 19:04:59 -04:00
jeresig
53396b879b Make sure that .width()/.height() don't return NaN also standardize on returning instead of auto for default values (which is what we do elsewhere in .css() as well). Fixes #7225. 2010-10-22 02:39:06 -04:00
jeresig
7e02cee5ff Make sure that the correct height/width of the elements is retreived. Fixes #7225. 2010-10-22 02:16:14 -04:00
jeresig
e4a38670b1 Make sure that height/width getters work on hidden inputs and disconnected elements. Fixes #7225. 2010-10-22 00:28:33 -04:00
Scott González
22ccbf82c8 Fixed getting styles from disconnected nodes. Fixes #7148. 2010-10-11 15:11:03 -04:00
John Resig
b0dcc1746f Merge branch 'animate-nonblock' of http://github.com/csnover/jquery into csnover-animate-nonblock 2010-10-09 16:21:02 -04:00
jeresig
2ae872c594 Make sure null/NaN values aren't set in .css(). Fixes #7116. 2010-10-09 10:52:53 -04:00
Colin Snover
2ca3659895 Prevent IE from throwing errors when setting RGBA values. Fixes #5509. 2010-10-09 10:42:01 -04:00
Colin Snover
0229b83f7e Fix :visible does not work properly when display:none is set directly on an element in IE8. Fixes #4512. 2010-10-05 13:23:10 -05: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
Brandon Aaron
8be5792975 fix for #3546. css now works with other windows than just the one it was loaded in. 2009-04-22 04:39:44 +00:00
Brandon Aaron
d7d908b05a decoupling styles retrieval from the attr method 2009-03-22 23:25:03 +00:00