Commit Graph

123 Commits

Author SHA1 Message Date
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
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
8b129ccd49 Be sure to clean up the previous test. 2010-10-22 00:29:52 -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
jeresig
f009fb2f86 Test visible on inline elements. 2010-10-14 21:31:36 -04:00
jeresig
c8e5d0bca0 Getting weird results for font size tests across platforms - easier to test something else (the exact property isn't important for this test). 2010-10-14 21:15:20 -04:00
jeresig
cd8f4917ba Change font size to 15px in the test to fix a false negative. Thanks @jitter for the catch in 73e4ef27f0. 2010-10-13 14:27:44 -04:00
jeresig
8fb4d9af74 We want to make sure that we only run the MSIE-specific filter tests if opacity is explicitly not supported. 2010-10-13 00:42:05 -04:00
jeresig
73e4ef27f0 Test CSS test on font size instead of padding. 2010-10-13 00:32:52 -04:00
jeresig
9ede46b004 IE 9 preserves the case of the Alpha filter - maintain it in the test as well. 2010-10-13 00:10:32 -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
0cdcef5b36 Update $.fn.animate to change display mode only when necessary (inline, non-floated elements), and to use a more proper display mode for those elements. Fixes #2185. 2010-10-05 13:28:43 -05: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
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
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
jeresig
ebaf374f2a Add .css(Function) incoming value tests. 2010-01-07 13:52:20 -05:00
jeresig
0bb4fd0af7 No need for the try/finally logic in the css tests, won't even work as expected. 2010-01-07 13:44:53 -05:00
jeresig
1ea539b4f0 Add some extra tests to make sure we can get the value of hyphenated CSS properties, for #3732. 2009-12-22 11:54:54 -05:00
jeresig
de65985933 Make sure that some height/width is set for the nothiddendiv before checking. 2009-12-16 17:08:10 -05: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
8a33a855b5 Tweaked a CSS test to handle differences in font-size % support in browsers. 2009-12-03 12:34:27 -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
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
Yehuda Katz
7cfec99858 Uses the more stable font-size as a sentinel 2009-07-13 21:50:58 +00:00
Yehuda Katz
c0802e5d21 Test Tweak to normalize the CSS results across browsers 2009-07-13 19:48:08 +00:00
Yehuda Katz
4ae7234736 Updates css() tests to use hex rather than color names 2009-07-13 19:24:23 +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
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
John Resig
4130319e97 Added explicit module names to the new unit tests. 2009-04-20 17:05:18 +00:00
Brandon Aaron
d7d908b05a decoupling styles retrieval from the attr method 2009-03-22 23:25:03 +00:00