aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
Commit message (Collapse)AuthorAgeFilesLines
* CSS: ensure table styles do not affect reliableHiddenOffsets testTimmy Willison2016-05-111-0/+9
| | | | | Fixes gh-3065 Close gh-3057
* CSS: disconnected elements should be hiddenTimmy Willison2016-05-111-1/+4
| | | | Fixes gh-3043
* CSS: Add test for gh-2867Timmy Willison2016-01-271-0/+10
|
* CSS: Add animation-iteration-count to cssNumber, fix testsJun Sun2016-01-071-4/+13
| | | | | | | (cherry-picked from df822caff079177d1840d67e03d6b24a93ea99a5) Fixes gh-2792 Closes gh-2793
* Revert "Misc: Drop support for older browsers; update support comments"Timmy Willison2016-01-061-16/+21
| | | | This reverts commit 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.
* Build: code style fixes after all those revertsOleg Gaidarenko2015-12-221-83/+82
|
* Tests: correct revert artefactOleg Gaidarenko2015-12-221-4/+4
|
* Revert "CSS: simplify hack of css getter for the computed values"Oleg Gaidarenko2015-12-221-13/+2
| | | | This reverts commit dac716ca65a83bab2449ffa35c43b4b52e26a0c1.
* Revert "CSS: Ignore the CSS cascade in show()/hide()/etc."Oleg Gaidarenko2015-12-221-76/+150
| | | | This reverts commit 9df8bd205ab78308c34af70c934c42175e560e86.
* Revert "CSS: Make .css("width") & .css("height") return fractional values"Oleg Gaidarenko2015-12-221-48/+2
| | | | This reverts commit 23212b34e690e857cbc46951dd8c018d181206cb.
* Revert "CSS: Make show/hide/toggle methods a module"Oleg Gaidarenko2015-12-221-33/+24
| | | | This reverts commit 3842246024475eafdc8a00a7ac4358d06d76cab2.
* CSS: Make show/hide/toggle methods a moduleDave Methvin2015-10-251-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 (cherry picked from commit 67d7a2eefee768b59eb3d51cb1fb2c671873e58a) Conflicts: Gruntfile.js src/css.js src/css/showHide.js test/unit/css.js
* CSS: Correct misrepresentation of "auto" horizontal margins as 0Richard Gibson2015-10-181-6/+20
| | | | | Fixes gh-2237 Closes gh-2276
* 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 Ref c8d15a2f9f108e90d3651c31e4abf45415a30fde
* Tests: Partially use new qunit interfaceOleg Gaidarenko2015-09-071-311/+312
| | | | | | | | | | | | | 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 Ref b930d14ce64937e9478405eee2828d4da091d2cb Fixes gh-2540
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-462/+466
| | | | | Ref 10fdad742a2a6aa9f0e00b3e04fc5264797c53c7 Fixes gh-2056
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-8/+24
| | | | Ref aabe94edb4880c75eeebc5b5b5d66a9ad17008fe
* Docs: Fix various spelling mistakesBruno Pérel2015-07-301-1/+1
| | | | | | (cherry-picked from 360a4780339b7f412b75ad8a06dca7f39616f654) 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. (cherry-picked from 93bee4701d14202045a88aab156da0daf9418430) Refs gh-2482
* CSS: Make .css("width") & .css("height") return fractional valuesMichał Gołębiowski2015-07-071-0/+46
| | | | | | Fixes gh-1724 Closes gh-2454 Refs 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. (cherry-picked from d471842b3e3af83c9a1be06b5d16f75bfa96af8c) 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-123/+60
| | | | | | | | | | | | | | | | Fixes gh-1767 Fixes gh-2071 Closes gh-2180 (cherry picked from commit 86419b10bfa5e3b71a7d416288ab806d47a31d1f) Conflicts: src/css.js src/css/defaultDisplay.js src/effects.js test/data/testsuite.css test/unit/css.js test/unit/effects.js
* Tests: Expand CSS relative adjustment tolerance for IERichard Gibson2015-03-161-2/+2
| | | | | | | Ref 48be675200e817f40fa8ec25da1be2ab0839d28d Ref 4a8000b51a9854e21361e435e4c9b9cbd8ac458a (cherry picked from commit e22ef5d9017c44cad97ae541fefce76cc455edcb)
* Tests: Fix CSS relative adjustment test for round-down browsersRichard Gibson2015-03-161-7/+19
| | | | | | | Ref 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17 Ref 6fb2cefc602cf8bd8b85373f480e978bb8978e37 (cherry picked from commit 48be675200e817f40fa8ec25da1be2ab0839d28d)
* CSS: Support relative adjustment in any applicable unitMr212015-03-091-0/+52
| | | | | | | | | | | Fixes gh-1711 Closes gh-2011 (cherry picked from commit 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17) Conflicts: src/css.js src/effects.js
* CSS: simplify hack of css getter for the computed valuesOleg Gaidarenko2014-12-241-0/+11
| | | | Ref gh-1906
* CSS: Add unit tests for negative margins and positioningAditya Raghavan2014-12-241-0/+15
| | | | Ref 1b932bb7867924b98529537f8ccd35db979ae22a
* Css: Remove non-functional unit test for negative marginDave Methvin2014-12-091-4/+1
| | | | | | | | Thanks @MatthewMueller Closes gh-1474 Ref gh-1918 (cherry picked from commit 30b3b33251abc38386b787c64494265177302b86)
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-12-081-24/+15
| | | | | | | | | | That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Fixes gh-1836 Fixes gh-1701 Refs gh-1815 Refs gh-1820
* CSS: Fix get upper case alpha opacity in IE8Zheming Sun2014-11-081-0/+13
| | | | | Fixes gh-1705 Closes gh-1704
* 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 Conflicts: src/css/hiddenVisibleSelectors.js
* 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 Ref e488d985cfb10ab8c684bbc6a9b8ff3eae23bf83
* 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. (cherry-picked from def4841cfaf68e2ec156c554f8efa4aa64203f36) Fixes #15016 Closes gh-1563
* CSS: jQuery#hide should always save display valueOleg Gaidarenko2014-03-201-0/+10
| | | | | | | | | Fixes #14750 Closes gh-1509 (cherry picked from commit 5a8f76933288396b915800a18240aa17d3414201) Conflicts: src/css.js
* Css: Fix testsMichał Gołębiowski2014-03-101-6/+9
| | | | | | | | | It's not easy to find a CSS property that is implemented even in ancient browsers and that returns a consistent result among browsers when passed through .css(). color didn't work since Firefox normalizes it an empty value to rgb(0, 0, 0). (cherry-picked from 0c12cb3910c446960a274fb0eab11b8830bed71f)
* Css: Revert 24e587929f62428e1959b10aace6dc4fd65ab397Michał Gołębiowski2014-03-101-7/+20
| | | | | | | | | | | | | | The workaround to be able to change !important styles broke the browser keeping the old CSS value if the new one was rejected. Patching it would involve a significant perf hit (~33%) so the initial patch needs to be reverted instead. Tests by m_gol & gibson042. (cherry-picked from 10e654218a65ec9a0ffc875137cea945389c69f1) Fixes #14836 Closes gh-1532
* CSS: Return values should be numbersDave Methvin2014-03-041-1/+2
| | | | | Fixes #14792 (cherry picked from commit f4b37d89820535d6c7503925aa8872645681a865)
* Css: Don't check fill-opacity in Android 2.3, it's not supportedMichał Gołębiowski2014-02-131-1/+6
| | | | (cherry-picked from de75b3cc626829c3478a8a6d59dddc948d348b41)
* Docs: Add support comments for prefixed box-sizingMichał Gołębiowski2014-02-051-0/+1
|
* Tests: Avoid use of QUnit.reset() in tests by splitting themcjqed2014-01-031-4/+8
| | | | | Closes gh-1470 Ref #1457
* Fix #14394: Changing style !important in webkit. Close gh-1385.Lihan Li2013-10-151-0/+6
| | | | | | | | (cherry picked from commit 24e587929f62428e1959b10aace6dc4fd65ab397) Conflicts: src/css.js
* No ticket: Test cleanupRichard Gibson2013-10-151-21/+9
| | | | | | | | (cherry picked from commit 8df348e9eb3681ff5f09b1e52b72573e2eee3105) Conflicts: test/unit/css.js
* Fix #14432: Always return string from .css("z-index"). Close gh-1395.George Kats2013-10-151-0/+18
| | | | | | | | (cherry picked from commit 5ce4b06c285bd8cf52eaff0f39e0b9192a927873) Conflicts: src/css/curCSS.js
* Correct test assertion of #10227 ticket for IE8Oleg2013-09-171-7/+6
|
* Fix memory leaks in tests for css moduleOleg2013-09-171-1/+8
|
* Fix #12723 and simplification and optmization of defaultDisplay helperOleg2013-09-171-10/+14
| | | | (cherry picked from commit a25343001eea2436dcf8ea60deea3844f77e42e4)
* Fix #10814. Fix #14084. Make support tests lazy and broken out to components.Michał Gołębiowski2013-09-061-0/+8
|
* No ticket. Correct a support comment for the `order` test. (cherry-picked ↵Michał Gołębiowski2013-08-201-1/+1
| | | | from 2ac1cd91db5c20cbe8ba0db44f7640cd150060ee)