]> source.dussan.org Git - jquery.git/commitdiff
CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS vars
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 2 May 2018 15:08:20 +0000 (17:08 +0200)
committerGitHub <noreply@github.com>
Wed, 2 May 2018 15:08:20 +0000 (17:08 +0200)
Closes gh-4062

test/unit/css.js

index 29fa70906788f26aa7e1f8b53f1ce4f2a3fe0899..fbb42c301173c527864381f3427acdaeaf04907e 100644 (file)
@@ -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" );