Saptak Sengupta
662083ed7b
Core: Use isAttached to check for attachment of element
...
This change replaces the use of contains to check for attachment
by isAttached function
Closes gh-3977
Ref gh-3504
2018-03-05 18:57:03 +01:00
Saptak Sengupta
f00a07590e
CSS: Correctly set support properties with non-default zoom
...
Fixes gh-3808
Closes gh-3872
2017-12-05 23:59:54 -05:00
Richard Gibson
94ddf62022
CSS: Detect more WebKit styles erroneously reported as percentages
...
Ref 692f9d4db3
Fixes gh-3777
Closes gh-3778
2017-09-18 11:59:50 -04:00
Richard Gibson
692f9d4db3
CSS: Avoid unit-conversion interference from CSS upper bounds
...
Fixes gh-2144
Closes gh-3745
2017-08-28 13:23:04 -04:00
Richard Gibson
20cdf4e7de
Support: Properly check for IE9 absolute scrollbox mishandling
...
Ref gh-3589
Fixes gh-3699
Fixes gh-3730
Closes gh-3729
2017-07-18 15:40:41 -04:00
Richard Gibson
3fcddd6e72
Dimensions: Detect and account for content-box dimension mishandling
...
Fixes gh-3699
Closes gh-3700
2017-07-10 12:35:03 -04:00
Timmy Willison
c4598da429
CSS: retrieve inline style before computed
...
- Fixes an issue with getting computed style on detached elements
2017-03-20 13:43:18 -04:00
Timmy Willison
473d2ea7d5
Dimensions: fall back to offsetWidth/Height for inline elems
...
Close gh-3577
Fixes gh-3571
2017-03-20 12:16:12 -04:00
Connor Atherton
619bf98d5b
CSS: Support custom properties
...
Fixes gh-3144
Closes gh-3199
Closes gh-3557
2017-03-07 14:52:08 +01:00
Oleg Gaidarenko
522f546d96
Build: More ESLint related changes
2016-07-09 00:49:43 +03:00
Oleg Gaidarenko
58c6ca9822
Build: ESLint details
...
Use eslint pragmas, fix new errors, etc
Closes gh-3148
2016-06-11 10:41:33 +03:00
Michał Gołębiowski
305f193aa5
Build: Put all AMD modules in "src/" in strict mode
...
Fixes gh-3073
2016-04-25 20:25:08 +02:00
Richard Gibson
cf1497a58c
Build: A more modest block-level function proposal
...
This reverts commit fa610da684
.
2016-04-23 22:14:25 -04:00
Richard Gibson
755e7ccf01
CSS: Toggle detached elements as visible unless they have display: none
...
Fixes gh-2863
Closes gh-3037
2016-04-11 13:21:11 -04:00
Michał Gołębiowski
6072d150d6
Docs: Update support comments to follow the new syntax
...
The changes follow the spec proposed in:
https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
2016-03-30 23:45:17 +02:00
Oleg Gaidarenko
44cb97e0cf
Support: improve support properties computation
...
* Remove div from the memory if it is not needed anymore
* Make `computeStyleTests` method a singleton
Fixes gh-3018
Closes gh-3021
2016-03-28 19:24:31 +03:00
Michał Gołębiowski
9b086888b8
Docs:Tests: Remove obsolete code from tests, update support comments
...
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
2016-03-08 23:26:46 +01:00
Timmy Willison
0402963845
Selector: filters -> pseudos
...
Fixes gh-2073
Close gh-2969
2016-03-07 11:14:53 -05:00
Todor Prikumov
35c314827d
CSS: Make sure elem.ownerDocument.defaultView is not null
...
Fixes gh-2866
Close gh-2867
2016-01-27 11:35:51 -05:00
Bernhard M. Wiedemann
1de8346729
Docs: use https where possible
...
Close gh-2875
2016-01-27 10:52:43 -05:00
Timmy Willison
a6fc0b1651
CSS: isHidden -> isHiddenWithinTree
...
Fixes gh-2404
Close gh-2855
2016-01-21 11:27:39 -05:00
Richard Gibson
fe05cf37ff
CSS: Stop Firefox from treating disconnected elements as cascade-hidden
...
Fixes gh-2833
Ref dba93f79c4
Close gh-2835
2016-01-14 17:53:39 -05:00
Richard Gibson
dba93f79c4
CSS: Restore cascade-override behavior in .show
...
Fixes gh-2654
Fixes gh-2308
Close gh-2810
Ref 86419b10bf
2016-01-13 16:05:09 -05:00
Timmy Willison
ab06be561e
Effects: fix loading showHide in AMD mode
2015-11-10 12:44:35 -05:00
Richard Gibson
487d5ca913
CSS: Correct misrepresentation of "auto" horizontal margins as 0
...
Fixes gh-2237
Closes gh-2276
(cherry picked from commit 214e1634ab
)
Conflicts:
src/css.js
src/css/support.js
test/unit/support.js
2015-10-18 16:58:38 -04:00
Timmy Willison
32cfc38a9c
CSS: fix AMD mode for the new showHide module
2015-10-18 15:10:11 -04:00
Dave Methvin
67d7a2eefe
CSS: Make show/hide/toggle methods a module
...
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
2015-10-18 12:30:00 -04:00
Michał Gołębiowski
ce3b4a6242
Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 support
...
Drop non-critical workarounds for Android 2.3.
Fixes gh-2483
Fixes gh-2505
Closes gh-2581
2015-09-14 21:26:48 +02:00
Oleg Gaidarenko
10fdad742a
Build: Update jscs and lint files
...
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Thomas Tortorini
3a0d582cf6
CSS: make the getStyles function more readable
...
The new version is not only simpler to read but also smaller
by 6 bytes gzipped.
Closes gh-2393
2015-06-25 02:48:35 +02:00
Michał Gołębiowski
0019a463bd
CSS: Don't name the anonymous swap function
...
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 e847574fc7
)
Refs 02a9d9f94b
2015-06-01 19:59:23 +02:00
Timmy Willison
79bcb29132
CSS: fix :visible/:hidden selectors for inline element w/ content
...
- 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
2015-05-12 09:14:16 -04:00
Michał Gołębiowski
7855a1a7d8
CSS: Collapse a double if statement into one
...
Saves 3 bytes gzipped
Closes gh-2296
2015-05-12 00:05:35 +02:00
Richard Gibson
86419b10bf
CSS: Ignore the CSS cascade in show()/hide()/etc.
...
Fixes gh-1767
Fixes gh-2071
Closes gh-2180
2015-05-11 13:00:49 -04:00
Oleg Gaidarenko
85577a348a
Core:CSS:Event: simplification of native method signatures
...
* Remove third argument from "addEventListener"
* Remove third argument from "removeEventListener"
* Remove second argument from "getComputedStyle"
Ref gh-2047
2015-05-03 13:56:32 +03:00
Michał Gołębiowski
f6de5a90dd
Core: Align branches: remove an unused variable, add comments
...
Closes gh-2233
2015-04-27 20:19:05 +02:00
Michał Gołębiowski
bb4d888f4f
CSS: Don't expose jQuery.swap
...
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
2015-04-13 11:41:57 -04:00
Michał Gołębiowski
06f6cd1ffd
Core: Update tested jsdom, drop obsolete workarounds
...
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
2015-03-30 18:58:09 +02:00
Mr21
9b03f6df88
CSS: Support relative adjustment in any applicable unit
...
Fixes gh-1711
Closes gh-2011
2015-03-09 12:00:10 -04:00
Michał Gołębiowski
45ec73f556
CSS: save 20 bytes in css/support
...
Refs gh-1842
2015-02-05 02:48:32 +01:00
Michał Gołębiowski
cdfc2d092a
CSS: Fix the pixelMarginRight support test in Android 2.3
2015-02-05 01:41:10 +01:00
Michał Gołębiowski
3747cc642a
CSS: Restore the hack to get pixels for .css('width') etc.
...
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
2015-02-04 13:51:56 +01:00
Michał Gołębiowski
76df9e4e38
Build: Don't assume the browser environment; smoke test on Node w/ jsdom
...
Fixes gh-1950
Closes gh-1949
2014-12-26 13:26:46 +01:00
Oleg Gaidarenko
c62486fb4c
CSS: simplify "defaultDisplay" module
...
Closes gh-1962
2014-12-24 02:25:04 +03:00
Dave Methvin
7d15b4d1f1
CSS: Clean up memory leak in reliableMarginRight
...
Fixes gh-1795
Closes gh-1893
Thanks for the report flexphperia!
2014-12-02 15:01:45 -05:00
Michał Gołębiowski
740e190223
Misc: Drop support for older browsers; update support comments
...
That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.
Closes gh-1820
Refs gh-1815
2014-11-03 18:37:26 +01:00
Oleg Gaidarenko
7e09619cdf
CSS: Correct typo in the comment
2014-09-03 00:20:23 +04:00
Oleg Gaidarenko
a7724186c9
CSS: Use pre-defined displays for html and body
...
Ref 60f546acb1
Ref 274feb53cc
2014-09-03 00:11:05 +04:00
Nazar Mokrynskyi
274feb53cc
CSS: Remove use of getDefaultComputedStyle
...
Remove optimization to make jQuery compatible with Google's Polymer project
Closes gh-1647
Fixes #15227
2014-09-02 23:34:48 +04:00
Timmy Willison
10399ddcf8
CSS: elements are hidden when either offsetWidth or offsetHeight is zero
...
- Note: this is a breaking change that has been delayed for several versions.
Fixes #10406
Fixes #13132
2014-07-17 17:03:35 -07:00