Skip to content

Commit

Permalink
CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS vars
Browse files Browse the repository at this point in the history
Closes gh-4062
  • Loading branch information
mgol authored May 2, 2018
1 parent f5e36bd commit f8c1e90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" );

Expand Down

0 comments on commit f8c1e90

Please sign in to comment.