Skip to content
Permalink
Browse files

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

Closes gh-4062
  • Loading branch information...
mgol committed May 2, 2018
1 parent f5e36bd commit f8c1e9020c8fd0f0bb83019bfb12e9a7099599b2
Showing with 2 additions and 0 deletions.
  1. +2 −0 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" );

0 comments on commit f8c1e90

Please sign in to comment.
You can’t perform that action at this time.