aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2018-05-02 17:08:20 +0200
committerGitHub <noreply@github.com>2018-05-02 17:08:20 +0200
commitf8c1e9020c8fd0f0bb83019bfb12e9a7099599b2 (patch)
treeb70ae0181dafc9778ec894648f5333e8b361c079
parentf5e36bd8f2c2b28231bbed926c6c3dead94db545 (diff)
downloadjquery-f8c1e9020c8fd0f0bb83019bfb12e9a7099599b2.tar.gz
jquery-f8c1e9020c8fd0f0bb83019bfb12e9a7099599b2.zip
CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS vars
Closes gh-4062
-rw-r--r--test/unit/css.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 29fa70906..fbb42c301 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1632,10 +1632,12 @@ QUnit.test( "Do not throw on frame elements from css method (#15098)", function(
assert.equal( div.css( "--color" ), "red", "Modified CSS custom property using object" );
div.css( { "--mixedCase": "green" } );
+ div.css( { "--mixed-case": "red" } );
assert.equal( div.css( "--mixedCase" ), "green",
"Modified CSS custom property with mixed case" );
div.css( { "--theme-dark": "purple" } );
+ div.css( { "--themeDark": "red" } );
assert.equal( div.css( "--theme-dark" ), "purple",
"Modified CSS custom property with dashed name" );