aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-04-29 21:06:53 +0200
committerGitHub <noreply@github.com>2019-04-29 21:06:53 +0200
commit8fae21200e80647fec4389995c4879948d11ad66 (patch)
treee54dca524d936d0258aebb22b59a20fc4d982431 /test/unit/css.js
parenteb6c0a7c97b1b3cf00144de12d945c9c569f935c (diff)
downloadjquery-8fae21200e80647fec4389995c4879948d11ad66.tar.gz
jquery-8fae21200e80647fec4389995c4879948d11ad66.zip
Data: Separate data & css/effects camelCase implementations
The camelCase implementation used by the data module no longer turns `-ms-foo` into `msFoo` but to `MsFoo` now. This is because `data` is supposed to be a generic utility not specifically bound to CSS use cases. Fixes gh-3355 Closes gh-4365
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 20a5a77bc..150f5b908 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1885,3 +1885,18 @@ QUnit.test( "Do not throw on frame elements from css method (#15098)", function(
} )();
}
+
+// Support: IE 11+
+if ( document.documentMode ) {
+ // Make sure explicitly provided IE vendor prefix (`-ms-`) is not converted
+ // to a non-working `Ms` prefix in JavaScript.
+ QUnit.test( "IE vendor prefixes are not mangled", function( assert ) {
+ assert.expect( 1 );
+
+ var div = jQuery( "<div>" ).appendTo( "#qunit-fixture" );
+
+ div.css( "-ms-grid-row", "1" );
+
+ assert.strictEqual( div.css( "-ms-grid-row" ), "1", "IE vendor prefixing" );
+ } );
+}