Commit Graph

87 Commits

Author SHA1 Message Date
Mike Sherov
3225d61496 Make dimensions modular, adds optional build flag. Fixes #11856 2012-06-05 15:29:46 -04:00
Richard Gibson
7f2cc46955 Fix #11767. Modularize build and unit tests for exluding effects.
Closes gh-785. To build a version of jQuery without effects, use `grunt build:*:*:-effects`. The unit tests feature-check for the interfaces and skip the unit tests for effects if they don't detect it.
2012-05-28 22:36:23 -04:00
Mike Sherov
d5e5ce5bd0 Fix #11311. Percents not pixels for top/left/bottom/right. Closes gh-793. 2012-05-24 21:39:31 -04:00
Mike Sherov
e0151e5827 Fix #10877. Make outerWidth/Height a setter. Closes gh-783. 2012-05-21 13:44:19 -04:00
jaubourg
63aaff590c Makes sure child element doesn't prevent setting height to 0. Fixes failure in unit test in IE6. 2012-05-16 16:08:50 +02:00
Corey Frang
58ed62ed12 Effects: 1.8 Animation Rewrite - thanks @mikesherov and @gibson042 2012-04-23 15:05:12 -04:00
Mike Sherov
d7217cc29c Fix 11004. getWH() box-sizing:border-box includes padding and border. 2012-04-10 17:26:52 -04:00
timmywil
9bea2167c4 When the width/height computed unit is not pixels, return that instead. Fixes #10782.
- Reordered some of css.js in preparation for jshint undef.
2011-12-12 10:42:10 -05:00
Mike Sherov
8f5f1b2e6c Fix #8498. Add cssHooks[prop].expand for use by animate(). 2011-12-08 20:01:23 -05:00
Mike Sherov
7f6a991313 Fix #10639. Make percent-specified margins return px values in WebKit. 2011-12-06 20:32:26 -05:00
Mike Sherov
6aa4095ed6 Fix #10796. Allow IE<9 to retrieve uncomputed styles. 2011-12-06 16:44:32 -05:00
Mike Sherov
f35ba5e699 Fix #10691. Remove all instances of equals() and same(), as these are deprecated in QUnit. 2011-11-06 15:27:42 -05:00
Mike Sherov
516f3cd7b5 Landing pull request 561. only check for not null in unit tests. Supplements #8388.
More Details:
 - https://github.com/jquery/jquery/pull/561
 - http://bugs.jquery.com/ticket/8388
2011-10-23 15:31:50 -04:00
Mike Sherov
e502012c0f Landing pull request 553. Fallback to elem.style for disconnected nodes in width/height retrieval. Fixes #8388.
More Details:
 - https://github.com/jquery/jquery/pull/553
 - http://bugs.jquery.com/ticket/10254
 - http://bugs.jquery.com/ticket/8388
2011-10-22 16:08:14 -04:00
timmywil
76a84fba94 Call .is(:visible) on the window or document does not thrown an error in IE. Fixes #10267. 2011-09-19 15:42:32 -04:00
Dave Methvin
015328787c Fixes #10021. Allow negative relative values for .css() (e.g., "+=-20px") since .animate() already allows it. Useful for when the relative value is a variable. 2011-08-16 18:00:44 -04:00
Corey Frang
5b0c3060f0 Unit test for #6652 2011-07-13 22:54:25 -05:00
rwldrn
5eef5917fd Landing pull request 409. Adds fillOpacity to internal cssNumber. Fixes #9548.
More Details:
 - https://github.com/jquery/jquery/pull/409
 - http://bugs.jquery.com/ticket/9548
2011-06-14 15:59:22 -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
rwldrn
632cd6c4ba Landing pull request 357. Update unit tests for widows & orphans. Supplements #8971 Fixes #8971.
More Details:
 - https://github.com/jquery/jquery/pull/357
 - http://bugs.jquery.com/ticket/8971
2011-04-28 15:56:02 -04:00
timmywil
c0450f3c2a Correct the attachment of the p tag in the widows/orphans tests. Fixes test suite in IE8 2011-04-27 16:33:12 -04:00
rwldrn
86d5d3e809 No need to test for widows & orphans values in IE6-8. Fixes #8971 2011-04-25 13:13:57 -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
timmywil
ecf6a3c383 Switch QUnit div from depreceted #main to #qunit-fixture 2011-04-17 02:43:57 -04:00
louisremi
a5604aedb7 merge with master and resolve more conflicts 2011-04-12 11:29:25 +02:00
jeresig
312df0441b Revert "QUnit test for overriding important css declarations, references #4427"
This reverts commit 1299e89dcd.

Conflicts:

	test/unit/css.js
2011-04-12 00:54:12 -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
Azatoth
1299e89dcd QUnit test for overriding important css declarations, references #4427 2011-04-12 00:17:07 -04:00
timmywil
98da6b13bc Fixes unit/css.js test fail in Safari 5. support.js test was passing erroneously due to the body to which the div was attached having a width of 0 2011-04-11 23:59:12 -04:00
louisremi
11adde5127 second batch 2011-04-11 22:33:29 +02:00
louisremi
930731ba0f Double quote is the new simple quote 2011-04-11 21:33:15 +02:00
louisremi
d710442201 the expected number of assertions shouldn't contain a condition 2011-04-11 21:14:41 +02:00
louisremi
6ddc3816dd limit this test to browsers not supporting opacity 2011-04-11 21:05:15 +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
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
c6b891fb1c Adding unit tests for #8403 2011-03-07 14:43:08 +01:00
rwldrn
35aeac1336 Update unit test for #7608 which was leaking timers. 2011-01-17 18:55:40 -06:00
Colin Snover
e78d3a7e2d Merge in data_nocollide branch. Fixes #6968, improves unit testing framework checks for leaky stuff. 2011-01-17 15:31:43 -06:00
rwldrn
9bd9d270f6 whitespace fixes in unit tests 2011-01-10 13:17:08 -05:00
Colin Snover
e2941d5a98 Update unit tests with a leak detection mechanism for the various jQuery globals and fix all leaks in the tests. 2011-01-09 15:58:47 -06:00
rwldrn
8099cdce80 Bug #7608 elem.runtimeStyle throws exception in Opera 2011-01-05 13:32:59 -05:00
Colin Snover
3e0cc81504 Clean trailing whitespace from all files. 2010-12-30 00:34:48 -06: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
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
Brandon Aaron
6020b6bb38 Fix tab spacing. 2010-10-28 11:58:03 -05: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