CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS vars

Closes gh-4062
This commit is contained in:
Michał Gołębiowski-Owczarek 2018-05-02 17:08:20 +02:00 committed by GitHub
parent f5e36bd8f2
commit f8c1e9020c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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" );