aboutsummaryrefslogtreecommitdiffstats
path: root/src/css
Commit message (Collapse)AuthorAgeFilesLines
* Core: Recognize Shadow DOM in attachment checksSaptak Sengupta2018-11-092-2/+2
| | | | | | | Allow `isAttached` to check Shadow DOM for attachment. Fixes gh-3504 Closes gh-3996 Ref gh-3977
* CSS: Don't read styles.position in the width/height cssHook unless necessaryMichał Gołębiowski-Owczarek2018-10-081-1/+1
| | | | | | | | | | | | Current width/height cssHook reads the computed position style even if not necessary as the browser passes the scrollboxSize support test. That has been changed. This commit also makes the scrollboxSize support test in line with all others (i.e. only return true or false) and changes the variable name in the hook to make the code clearer. Fixes gh-4185 Closes gh-4187
* CSS: Correctly detect scrollbox support with non-default zoomRichard Gibson2018-05-071-1/+3
| | | | Fixes gh-4029 Closes gh-4030
* CSS: Skip the px-appending logic for animations of non-element propsMichał Gołębiowski-Owczarek2018-04-301-1/+2
| | | | | | | Without this change animating properties from jQuery.cssNumber on non-elements throws an error. Ref gh-4055 Closes gh-4061
* CSS: Avoid filling jQuery.cssPropsDave Methvin2018-03-191-0/+39
| | | | | | | | Fixes gh-3986 Closes gh-4005 Avoids filling jQuery.cssProps by introducing a second internal prop cache. This allows jQuery Migrate to detect external usage.
* Core: Use isAttached to check for attachment of elementSaptak Sengupta2018-03-052-7/+7
| | | | | | | This change replaces the use of contains to check for attachment by isAttached function Closes gh-3977 Ref gh-3504
* CSS: Correctly set support properties with non-default zoomSaptak Sengupta2017-12-051-3/+7
| | | | Fixes gh-3808 Closes gh-3872
* CSS: Detect more WebKit styles erroneously reported as percentagesRichard Gibson2017-09-184-16/+18
| | | | | Ref 692f9d4db30c9c6c4f6bc76005cf153586202fa6 Fixes gh-3777 Closes gh-3778
* CSS: Avoid unit-conversion interference from CSS upper boundsRichard Gibson2017-08-281-17/+19
| | | | Fixes gh-2144 Closes gh-3745
* Support: Properly check for IE9 absolute scrollbox mishandlingRichard Gibson2017-07-181-22/+22
| | | | | | Ref gh-3589 Fixes gh-3699 Fixes gh-3730 Closes gh-3729
* Dimensions: Detect and account for content-box dimension mishandlingRichard Gibson2017-07-101-6/+15
| | | | Fixes gh-3699 Closes gh-3700
* CSS: retrieve inline style before computedTimmy Willison2017-03-201-2/+7
| | | | - Fixes an issue with getting computed style on detached elements
* Dimensions: fall back to offsetWidth/Height for inline elemsTimmy Willison2017-03-201-2/+2
| | | | | Close gh-3577 Fixes gh-3571
* CSS: Support custom propertiesConnor Atherton2017-03-071-2/+3
| | | | | | Fixes gh-3144 Closes gh-3199 Closes gh-3557
* Build: More ESLint related changesOleg Gaidarenko2016-07-091-1/+1
|
* Build: ESLint detailsOleg Gaidarenko2016-06-111-2/+6
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Build: Put all AMD modules in "src/" in strict modeMichał Gołębiowski2016-04-2512-0/+23
| | | | Fixes gh-3073
* Build: A more modest block-level function proposalRichard Gibson2016-04-231-18/+19
| | | | This reverts commit fa610da68440530e73bba296a1f982f94dfeac99.
* CSS: Toggle detached elements as visible unless they have display: noneRichard Gibson2016-04-112-10/+20
| | | | | Fixes gh-2863 Closes gh-3037
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-303-5/+5
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Support: improve support properties computationOleg Gaidarenko2016-03-281-19/+15
| | | | | | | | | * Remove div from the memory if it is not needed anymore * Make `computeStyleTests` method a singleton Fixes gh-3018 Closes gh-3021
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-084-7/+7
| | | | | | | | | | 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
* Selector: filters -> pseudosTimmy Willison2016-03-071-3/+3
| | | | | Fixes gh-2073 Close gh-2969
* CSS: Make sure elem.ownerDocument.defaultView is not nullTodor Prikumov2016-01-271-1/+1
| | | | | Fixes gh-2866 Close gh-2867
* Docs: use https where possibleBernhard M. Wiedemann2016-01-271-1/+1
| | | | Close gh-2875
* CSS: isHidden -> isHiddenWithinTreeTimmy Willison2016-01-212-4/+6
| | | | | Fixes gh-2404 Close gh-2855
* CSS: Stop Firefox from treating disconnected elements as cascade-hiddenRichard Gibson2016-01-141-1/+6
| | | | | | Fixes gh-2833 Ref dba93f79c405373ec3a492fd0a4bf89b3136a6e6 Close gh-2835
* CSS: Restore cascade-override behavior in .showRichard Gibson2016-01-131-6/+38
| | | | | | | Fixes gh-2654 Fixes gh-2308 Close gh-2810 Ref 86419b10bfa5e3b71a7d416288ab806d47a31d1f
* Effects: fix loading showHide in AMD modeTimmy Willison2015-11-101-0/+1
|
* CSS: Correct misrepresentation of "auto" horizontal margins as 0Richard Gibson2015-10-181-6/+18
| | | | | | | | | | | | Fixes gh-2237 Closes gh-2276 (cherry picked from commit 214e1634ab9b1d13d53647dd5de3bdf7a091d49c) Conflicts: src/css.js src/css/support.js test/unit/support.js
* CSS: fix AMD mode for the new showHide moduleTimmy Willison2015-10-181-1/+2
|
* CSS: Make show/hide/toggle methods a moduleDave Methvin2015-10-181-3/+24
| | | | | | | | 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
* Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 supportMichał Gołębiowski2015-09-141-32/+1
| | | | | | | | Drop non-critical workarounds for Android 2.3. Fixes gh-2483 Fixes gh-2505 Closes gh-2581
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-0712-31/+45
| | | | Fixes gh-2056
* CSS: make the getStyles function more readableThomas Tortorini2015-06-251-3/+6
| | | | | | | The new version is not only simpler to read but also smaller by 6 bytes gzipped. Closes gh-2393
* CSS: Don't name the anonymous swap functionMichał Gołębiowski2015-06-011-1/+1
| | | | | | | | | | | | IE8 doesn't like named anonymous expressions. Not naming the function expression reduces the gzipped size by 5 bytes. In ECMAScript 2015 the function will get the name inferred from the variable name (here: swap) anyway. (cherry-picked from e847574fc755b5339f3de41bcebd5b2a3e140cfe) Refs 02a9d9f94b623ea8664b7b39fd57feb7de6c6a14
* CSS: fix :visible/:hidden selectors for inline element w/ contentTimmy Willison2015-05-121-4/+2
| | | | | | | | | | | - 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: Collapse a double if statement into oneMichał Gołębiowski2015-05-121-3/+0
| | | | | | Saves 3 bytes gzipped Closes gh-2296
* CSS: Ignore the CSS cascade in show()/hide()/etc.Richard Gibson2015-05-112-71/+47
| | | | | | Fixes gh-1767 Fixes gh-2071 Closes gh-2180
* Core:CSS:Event: simplification of native method signaturesOleg Gaidarenko2015-05-032-4/+4
| | | | | | | | | | * Remove third argument from "addEventListener" * Remove third argument from "removeEventListener" * Remove second argument from "getComputedStyle" Ref gh-2047
* Core: Align branches: remove an unused variable, add commentsMichał Gołębiowski2015-04-271-0/+1
| | | | Closes gh-2233
* CSS: Don't expose jQuery.swapMichał Gołębiowski2015-04-131-6/+2
| | | | | | | | | jQuery.swap was an undocumented API used only internally. With the modular AMD system we currently have it's not necessary to expose this function publicly under the jQuery object. Fixes gh-2058 Closes gh-2182
* Core: Update tested jsdom, drop obsolete workaroundsMichał Gołębiowski2015-03-301-49/+45
| | | | | | | | | The latest version supporting Node.js is 3.1.2; some workarounds are not needed for this version. For example, in jsdom 3.1.2 a document created via document.implementation.createHTMLDocument( "" ) has a body. Fixes gh-2153 Closes gh-2154
* CSS: Support relative adjustment in any applicable unitMr212015-03-091-0/+61
| | | | | Fixes gh-1711 Closes gh-2011
* CSS: save 20 bytes in css/supportMichał Gołębiowski2015-02-052-21/+20
| | | | Refs gh-1842
* CSS: Fix the pixelMarginRight support test in Android 2.3Michał Gołębiowski2015-02-052-7/+8
|
* CSS: Restore the hack to get pixels for .css('width') etc.Michał Gołębiowski2015-02-042-4/+39
| | | | | | | | | | This hack turns out to be needed by Android 4.0-4.3. Add a support test so that the hack is invoked only where needed. Refs gh-1815 Refs gh-1820 Closes gh-1842
* Build: Don't assume the browser environment; smoke test on Node w/ jsdomMichał Gołębiowski2014-12-262-7/+9
| | | | | Fixes gh-1950 Closes gh-1949
* CSS: simplify "defaultDisplay" moduleOleg Gaidarenko2014-12-241-1/+1
| | | | Closes gh-1962
* CSS: Clean up memory leak in reliableMarginRightDave Methvin2014-12-021-0/+1
| | | | | | | Fixes gh-1795 Closes gh-1893 Thanks for the report flexphperia!