From f8c1e9020c8fd0f0bb83019bfb12e9a7099599b2 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Wed, 2 May 2018 17:08:20 +0200 Subject: CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS vars Closes gh-4062 --- test/unit/css.js | 2 ++ 1 file changed, 2 insertions(+) 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" ); -- cgit v1.2.3