mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Clean up after the CSS Custom Properties support test
Refbcec54ee72
Ref619bf98d5b
This commit is contained in:
parent
bcec54ee72
commit
fc34dbc271
@ -1558,10 +1558,12 @@ QUnit.test( "Do not throw on frame elements from css method (#15098)", function(
|
||||
|
||||
( function() {
|
||||
var supportsCssVars,
|
||||
div = jQuery( "<div>" ).appendTo( "#qunit-fixture" )[ 0 ];
|
||||
elem = jQuery( "<div>" ).appendTo( document.body ),
|
||||
div = elem[ 0 ];
|
||||
|
||||
div.style.setProperty( "--prop", "value" );
|
||||
supportsCssVars = getComputedStyle( div ).getPropertyValue( "--prop" );
|
||||
supportsCssVars = !!getComputedStyle( div ).getPropertyValue( "--prop" );
|
||||
elem.remove();
|
||||
|
||||
QUnit[ supportsCssVars ? "test" : "skip" ]( "css(--customProperty)", function( assert ) {
|
||||
jQuery( "#qunit-fixture" ).append(
|
||||
|
Loading…
Reference in New Issue
Block a user