]> source.dussan.org Git - jquery.git/commit
CSS: Don't cache unrecognized CSS property names
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 11 May 2015 21:23:09 +0000 (23:23 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 1 Jun 2015 12:25:14 +0000 (14:25 +0200)
commit42ea7468250f1b612684a71b8643ae25367ff469
treedcbdfe8a1f3bf9ed2763b1290d51491737c1c0a2
parent37c3d087824b51e742126252ced8be592858102d
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 d471842b3e3af83c9a1be06b5d16f75bfa96af8c)

Fixes gh-2015
Closes gh-2298
src/css.js
test/unit/css.js