Oleg Gaidarenko
14eba98c8f
Build: code style fixes after all those reverts
2015-12-22 18:51:04 +03:00
Oleg Gaidarenko
b85f32f74e
Tests: correct revert artefact
2015-12-22 17:35:41 +03:00
Oleg Gaidarenko
7c0982029f
Revert "CSS: simplify hack of css getter for the computed values"
...
This reverts commit dac716ca65
.
2015-12-22 17:27:38 +03:00
Oleg Gaidarenko
b994f4ec85
Revert "CSS: Ignore the CSS cascade in show()/hide()/etc."
...
This reverts commit 9df8bd205a
.
2015-12-22 16:00:15 +03:00
Oleg Gaidarenko
7f21e19bed
Revert "CSS: Make .css("width") & .css("height") return fractional values"
...
This reverts commit 23212b34e6
.
2015-12-22 15:03:44 +03:00
Oleg Gaidarenko
079e0796ae
Revert "CSS: Make show/hide/toggle methods a module"
...
This reverts commit 3842246024
.
2015-12-22 14:24:15 +03:00
Dave Methvin
3842246024
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
(cherry picked from commit 67d7a2eefe
)
Conflicts:
Gruntfile.js
src/css.js
src/css/showHide.js
test/unit/css.js
2015-10-25 14:54:55 -04:00
Richard Gibson
214e1634ab
CSS: Correct misrepresentation of "auto" horizontal margins as 0
...
Fixes gh-2237
Closes gh-2276
2015-10-18 15:35:18 -04:00
Oleg Gaidarenko
2f0cedc997
Tests: further improvements QUnit 2.0 migration
...
* Remove QUnit jshint globals
* Extend QUnit.assert methods
* Use assert.async instead of start/stop/done
Ref b930d14ce6
Ref c8d15a2f9f
2015-09-08 04:15:54 +03:00
Oleg Gaidarenko
4543815eed
Tests: Partially use new qunit interface
...
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 b930d14ce6
Fixes gh-2540
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
20ddbe4f59
Build: Update jscs and lint files
...
Ref 10fdad742a
Fixes gh-2056
2015-09-07 20:14:50 +03:00
Oleg Gaidarenko
b8b111e337
Tests: don't use deprecated argument in test declaration
...
Ref aabe94edb4
2015-07-30 20:48:26 +03:00
Bruno Pérel
6af92cafca
Docs: Fix various spelling mistakes
...
(cherry-picked from 360a478033
)
Closes gh-2487
2015-07-30 15:51:44 +02:00
Michał Gołębiowski
5fce498e42
Core: Adjust comments & tests after dropping Safari 6 support
...
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 93bee4701d
)
Refs gh-2482
2015-07-27 22:19:57 +02:00
Michał Gołębiowski
23212b34e6
CSS: Make .css("width") & .css("height") return fractional values
...
Fixes gh-1724
Closes gh-2454
Refs gh-2439
2015-07-07 18:14:04 +02:00
Michał Gołębiowski
42ea746825
CSS: Don't cache unrecognized CSS property names
...
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 d471842b3e
)
Fixes gh-2015
Closes gh-2298
2015-06-01 14:25:14 +02:00
Timmy Willison
cbd51c50b3
Tests: fix tests in accordance with new :visible behavior
2015-05-12 10:06:42 -04:00
Timmy Willison
dd816dbac1
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 10:06:42 -04:00
Richard Gibson
9df8bd205a
CSS: Ignore the CSS cascade in show()/hide()/etc.
...
Fixes gh-1767
Fixes gh-2071
Closes gh-2180
(cherry picked from commit 86419b10bf
)
Conflicts:
src/css.js
src/css/defaultDisplay.js
src/effects.js
test/data/testsuite.css
test/unit/css.js
test/unit/effects.js
2015-05-11 13:01:13 -04:00
Richard Gibson
9d255b3e50
Tests: Expand CSS relative adjustment tolerance for IE
...
Ref 48be675200
Ref 4a8000b51a
(cherry picked from commit e22ef5d901
)
2015-03-16 23:53:53 -04:00
Richard Gibson
4a8000b51a
Tests: Fix CSS relative adjustment test for round-down browsers
...
Ref 9b03f6df88
Ref 6fb2cefc60
(cherry picked from commit 48be675200
)
2015-03-16 23:07:39 -04:00
Mr21
6fb2cefc60
CSS: Support relative adjustment in any applicable unit
...
Fixes gh-1711
Closes gh-2011
(cherry picked from commit 9b03f6df88
)
Conflicts:
src/css.js
src/effects.js
2015-03-09 13:31:11 -04:00
Oleg Gaidarenko
dac716ca65
CSS: simplify hack of css getter for the computed values
...
Ref gh-1906
2014-12-24 02:46:09 +03:00
Aditya Raghavan
ae30fb6c27
CSS: Add unit tests for negative margins and positioning
...
Ref 1b932bb786
2014-12-24 00:35:54 +03:00
Dave Methvin
1ece10fbee
Css: Remove non-functional unit test for negative margin
...
Thanks @MatthewMueller
Closes gh-1474
Ref gh-1918
(cherry picked from commit 30b3b33251abc38386b787c64494265177302b86)
2014-12-09 16:43:12 -05:00
Michał Gołębiowski
90d7cc1d8b
Misc: Drop support for older browsers; update support comments
...
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
2014-12-08 21:12:33 +01:00
Zheming Sun
c5e8e12cef
CSS: Fix get upper case alpha opacity in IE8
...
Fixes gh-1705
Closes gh-1704
2014-11-08 17:43:33 +01:00
Timmy Willison
7b9b98d6e3
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
Conflicts:
src/css/hiddenVisibleSelectors.js
2014-07-17 17:33:29 -07:00
Oleg Gaidarenko
76294e1e9e
CSS: Do not throw on frame elements in FF
...
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 e488d985cf
2014-06-16 03:21:34 +04:00
Michał Gołębiowski
e848b46cfc
Css: Use only positive integers as values for widows/orphans
...
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 def4841cfa
)
Fixes #15016
Closes gh-1563
2014-04-18 16:24:18 +02:00
Oleg Gaidarenko
6dcca6da36
CSS: jQuery#hide should always save display value
...
Fixes #14750
Closes gh-1509
(cherry picked from commit 5a8f769332
)
Conflicts:
src/css.js
2014-03-20 22:47:35 -04:00
Michał Gołębiowski
7ade83391e
Css: Fix tests
...
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 0c12cb3910
)
2014-03-10 20:02:59 +01:00
Michał Gołębiowski
4a6d1631ea
Css: Revert 24e587929f
...
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 10e654218a
)
Fixes #14836
Closes gh-1532
2014-03-10 19:20:54 +01:00
Dave Methvin
4adc5b2217
CSS: Return values should be numbers
...
Fixes #14792
(cherry picked from commit f4b37d8982
)
2014-03-04 21:50:42 -05:00
Michał Gołębiowski
a0677d54a6
Css: Don't check fill-opacity in Android 2.3, it's not supported
...
(cherry-picked from de75b3cc62
)
2014-02-13 16:01:09 -08:00
Michał Gołębiowski
63f5486007
Docs: Add support comments for prefixed box-sizing
2014-02-05 15:59:38 +01:00
cjqed
305eefe6ab
Tests: Avoid use of QUnit.reset() in tests by splitting them
...
Closes gh-1470
Ref #1457
2014-01-03 08:01:46 +04:00
Lihan Li
a5063ee2a1
Fix #14394 : Changing style !important in webkit. Close gh-1385.
...
(cherry picked from commit 24e587929f
)
Conflicts:
src/css.js
2013-10-15 16:38:38 -04:00
Richard Gibson
1ceecf4c64
No ticket: Test cleanup
...
(cherry picked from commit 8df348e9eb
)
Conflicts:
test/unit/css.js
2013-10-15 15:51:08 -04:00
George Kats
32d61d75e5
Fix #14432 : Always return string from .css("z-index"). Close gh-1395.
...
(cherry picked from commit 5ce4b06c28
)
Conflicts:
src/css/curCSS.js
2013-10-15 13:58:06 -04:00
Oleg
94a9a4f1c2
Correct test assertion of #10227 ticket for IE8
2013-09-17 18:21:26 +04:00
Oleg
ff156d77b2
Fix memory leaks in tests for css module
2013-09-17 17:53:26 +04:00
Oleg
fd2964237f
Fix #12723 and simplification and optmization of defaultDisplay helper
...
(cherry picked from commit a25343001e
)
2013-09-17 16:16:47 +04:00
Michał Gołębiowski
badcd1b6f3
Fix #10814 . Fix #14084 . Make support tests lazy and broken out to components.
2013-09-06 03:40:49 +02:00
Michał Gołębiowski
0f03378bdc
No ticket. Correct a support comment for the order
test. (cherry-picked from 2ac1cd91db
)
2013-08-20 15:54:27 +02:00
Michał Gołębiowski
f5f36dbd89
No ticket. Correct a support comment. (cherry-picked from f92a446ee8
)
2013-08-19 20:16:46 +02:00
Michał Gołębiowski
78a80c37a7
Remove redundant prefixes from the CSS order test. (cherry-picked from e3584179fe
)
2013-08-19 19:54:07 +02:00
Oleg
ae630c40ba
Correct assertion for #14049 ticket. Close gh-1327
2013-08-10 07:11:24 +04:00
Jason Merino
1c6641f0c8
Fixes #14049 : don't append px to CSS order value. Close gh-1300. (cherry picked from ec6eb38c64
)
2013-07-01 20:03:16 +02:00
Michał Gołębiowski
0db70aa1fa
Fix #13741 . Make wrap/unwrap methods optional; close gh-1236.
...
move size() test to unit/deprecated;
don't use size() in other tests;
make 2 unit tests actually fire;
code cleanup
2013-04-17 23:06:33 -04:00