aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
Commit message (Collapse)AuthorAgeFilesLines
* Core: Recognize Shadow DOM in attachment checksSaptak Sengupta2018-11-091-0/+80
| | | | | | | Allow `isAttached` to check Shadow DOM for attachment. Fixes gh-3504 Closes gh-3996 Ref gh-3977
* Tests: Add tests for not auto-appending "px" to CSS Grid propertiesMichał Gołębiowski-Owczarek2018-10-031-0/+50
| | | | | Ref gh-4007 Ref gh-4028 Closes gh-4165
* Test: enable a spec testing CSS whitespace preserving in Edge 17Michał Gołębiowski-Owczarek2018-06-181-2/+2
| | | | | | | | In Edge 14-16 setting a style property to a whitespace-only value resets it to the default, forcing us to skip a relevant CSS test in Edge. Now that Edge 17 has fixed the issue we can re-enable this test there. Ref gh-3204 Closes gh-4101
* CSS: Don't auto-append "px" to CSS variables (#4064)Michał Gołębiowski-Owczarek2018-06-041-0/+15
| | | | Fixes gh-4063 Closes gh-4064
* CSS: Correctly detect scrollbox support with non-default zoomRichard Gibson2018-05-071-3/+4
| | | | Fixes gh-4029 Closes gh-4030
* CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS varsMichał Gołębiowski-Owczarek2018-05-021-0/+2
| | | Closes gh-4062
* Tests: fix weird failure in Edge 16 CSSTimmy Willison2018-01-161-1/+1
| | | | | Fixes gh-3866 Close gh-3932
* Core: deprecate jQuery.isNumericJason Bedard2018-01-151-2/+2
| | | | | Fixes gh-2960 Closes gh-3888
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-3/+2
| | | | | | | | | | | | | - Update QUnit to 1.23.1 - Remove unused dl#dl from test/index.html - Remove unused map#imgmap from test/index.html - Ensure all urls to data use baseURI - Add the 'grunt karma:main' task - customContextFile & customDebugFile - Add 'npm run jenkins' script Close gh-3744 Fixes gh-1999
* CSS: Correctly set support properties with non-default zoomSaptak Sengupta2017-12-051-0/+9
| | | | Fixes gh-3808 Closes gh-3872
* Tests: Update lineHeight adjustments to give Android more slopRichard Gibson2017-09-081-9/+9
|
* CSS: Avoid unit-conversion interference from CSS upper boundsRichard Gibson2017-08-281-0/+16
| | | | Fixes gh-2144 Closes gh-3745
* Docs:Tests: Update IE/Edge-related support comments & testsMichał Gołębiowski2017-05-151-14/+15
| | | Closes gh-3661
* Tests: Clean up after the CSS Custom Properties support testMichał Gołębiowski2017-03-071-2/+4
| | | | | Ref bcec54ee7271e2d0e427bcb246e3d2009a8f84f9 Ref 619bf98d5b479f9582dbc40259b666f1c5a83146
* Tests: Skip CSS custom properties tests in non-supporting browsersMichał Gołębiowski2017-03-071-55/+66
| | | | Ref 619bf98d5b479f9582dbc40259b666f1c5a83146
* CSS: Support custom propertiesConnor Atherton2017-03-071-0/+64
| | | | | | Fixes gh-3144 Closes gh-3199 Closes gh-3557
* Tests: Disable a whitespace-setting test in Edge 14Michał Gołębiowski2016-09-121-1/+10
| | | | | | | | | | | | | | Working around this problem would require us to skip setting whitespace-only values except when they're valid which would be very fragile. Another option would be to set the value and see if it succeeded and then react to that. We've tried something like that in the past to be able to overwrite !important styles (see 24e5879) but it broke the CSS cascade (see https://bugs.jquery.com/ticket/14836#comment:5) and was triggering MutationObserver callbacks too often so it was reverted in PR gh-1532. Ref gh-3204 Ref gh-1532
* Build: ESLint detailsOleg Gaidarenko2016-06-111-16/+16
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Tests: Refactor testIframe() to make it DRYer and more consistentDave Methvin2016-04-111-2/+2
| | | | | Ref gh-3040 Closes gh-3049
* CSS: Toggle detached elements as visible unless they have display: noneRichard Gibson2016-04-111-0/+24
| | | | | Fixes gh-2863 Closes gh-3037
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-301-1/+1
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs:Tests: Remove legacy code & add support comments where neededMichał Gołębiowski2016-03-301-22/+16
| | | | | | | | This commits backports some changes done in the patch to the then-existing compat branch that removed support for old browsers and added some support comments. Refs 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-081-9/+4
| | | | | | | | | | Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
* CSS: Add test for gh-2867Timmy Willison2016-01-271-0/+10
|
* CSS: Restore cascade-override behavior in .showRichard Gibson2016-01-131-22/+253
| | | | | | | Fixes gh-2654 Fixes gh-2308 Close gh-2810 Ref 86419b10bfa5e3b71a7d416288ab806d47a31d1f
* CSS: Add animation-iteration-count to cssNumber, fix testsJun Sun2016-01-071-4/+13
| | | | | Fixes gh-2792 Closes gh-2793
* Selector: pass jQuery unit tests with selector-nativeTimmy Willison2015-11-111-6/+2
| | | | | | | | | - Ignore certain tests that obviously are not supported - Beefed up the sortOrder, uniqueSort, isXMLDoc, and attr functions Fixes gh-1742 Fixes gh-2048 Close gh-2703
* CSS: Correct misrepresentation of "auto" horizontal margins as 0Richard Gibson2015-10-181-6/+20
| | | | | | | | | | | | Fixes gh-2237 Closes gh-2276 (cherry picked from commit 214e1634ab9b1d13d53647dd5de3bdf7a091d49c) Conflicts: src/css.js src/css/support.js test/unit/support.js
* CSS: Make show/hide/toggle methods a moduleDave Methvin2015-10-181-24/+33
| | | | | | | | Unit test changes some uses of .show() and .hide() to .css( "display", ... ), there was already an implicit assumption in several of the existing tests. Fixes gh-2193 Close gh-2648
* Tests: further improvements QUnit 2.0 migrationOleg Gaidarenko2015-09-081-78/+83
| | | | | | | | * Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Ref b930d14ce64937e9478405eee2828d4da091d2cb
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-434/+440
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-284/+285
| | | | | | | | | | | | http://qunitjs.com/upgrade-guide-2.x/ For most of the boring work was used https://github.com/apsdehal/qunit-migrate package However, it can't update local qunit helpers, plus in some places old QUnit.asyncTest signature is still used Fixes gh-2540
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-6/+18
| | | | Closes gh-2507
* Docs: Fix various spelling mistakesBruno Pérel2015-07-301-1/+1
| | | | Closes gh-2487
* Core: Adjust comments & tests after dropping Safari 6 supportMichał Gołębiowski2015-07-271-1/+1
| | | | | | | | Support comments that mentioned only Safari < 7 were checked & updated to account for bugs existing in newer versions as well; Safari 6 support test results were removed. Refs gh-2482
* Build: Acknowledge Android 2.3 is not ES5-compatibleMichał Gołębiowski2015-07-201-1/+1
| | | | | | | | | | | Android 2.3 chokes on unquoted reserved words being used as property names which was making Deferred tests not run. Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser and enable the "es3" option in JSHint config. Fixes gh-2478 Closes gh-2481
* CSS: Make .css("width") & .css("height") return fractional valuesMichał Gołębiowski2015-07-071-0/+45
| | | | | Fixes gh-1724 Closes gh-2439
* CSS: Don't cache unrecognized CSS property namesMichał Gołębiowski2015-06-011-0/+80
| | | | | | | | | | | | | | | | | This prevents jQuery from caching a prefixed property name if provided directly by the user, e.g. the following code: elem.css( "msTransform", "translate(5px, 2px)" ); should not prevent one from from later setting the transition directly: elem.css( "transform", "translate(5px, 2px)" ); on a browser not understanding the unprefixed version which is the case for Safari 8 & transform. Fixes gh-2015 Closes gh-2298
* Tests: fix tests in accordance with new :visible behaviorTimmy Willison2015-05-121-4/+6
|
* CSS: fix :visible/:hidden selectors for inline element w/ contentTimmy Willison2015-05-121-7/+13
| | | | | | | | | | | - Reverts behavior from 10399dd, which we never released. BR and inline elements are considered visible. - The possibility of dropping .offsetWidth and .offsetHeight was debunked by this perf: http://jsperf.com/visible-hidden-and-getclientrects Fixes gh-2227 Close gh-2281
* CSS: Ignore the CSS cascade in show()/hide()/etc.Richard Gibson2015-05-111-117/+58
| | | | | | Fixes gh-1767 Fixes gh-2071 Closes gh-2180
* Tests: Expand CSS relative adjustment tolerance for IERichard Gibson2015-03-161-2/+2
| | | | Ref 48be675200e817f40fa8ec25da1be2ab0839d28d
* Tests: Fix CSS relative adjustment test for round-down browsersRichard Gibson2015-03-161-7/+19
| | | | Ref 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17
* CSS: Support relative adjustment in any applicable unitMr212015-03-091-0/+52
| | | | | Fixes gh-1711 Closes gh-2011
* CSS: Add unit tests for negative margins and positioningAditya Raghavan2014-12-241-0/+15
| | | | Closes gh-1957
* Css: Remove non-functional unit test for negative marginDave Methvin2014-12-091-4/+1
| | | | | | | Thanks @MatthewMueller Closes gh-1474 Ref gh-1918
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-11-031-4/+2
| | | | | | | | That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Closes gh-1820 Refs gh-1815
* CSS: elements are hidden when either offsetWidth or offsetHeight is zeroTimmy Willison2014-07-171-10/+12
| | | | | | | - Note: this is a breaking change that has been delayed for several versions. Fixes #10406 Fixes #13132
* CSS: Do not throw on frame elements in FFOleg Gaidarenko2014-06-161-0/+23
| | | | | | | | | | | | | IE9-10 throws on elements created in popups (see #14150), FF meanwhile throws on frame elements through "defaultView.getComputedStyle" (see #15098) Use "defaultView" if in the popup which would fix IE issue, use "window.getComputedStyle" which would fix FF issue. And everybody wins, except performance, but who cares right? Fixes #15098 Closes gh-1583
* Css: Use only positive integers as values for widows/orphansMichał Gołębiowski2014-04-181-8/+1
| | | | | | | | | According to http://www.w3.org/TR/CSS2/page.html#propdef-orphans, widows and orphans can take only positive integer values. Together with a Chrome 34 regression this caused the test to fail. Fixes #15016 Closes gh-1563