mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
CSS: Ensure camel- vs kebab-cased names are not collapsed for CSS vars
Closes gh-4062
This commit is contained in:
parent
f5e36bd8f2
commit
f8c1e9020c
@ -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" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user