Commit graph

76 commits

Author SHA1 Message Date
louisremi cccd092fe0 first batch 2011-04-11 21:43:43 +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 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
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