Permalink
Browse files

Tests: Clean up after the CSS Custom Properties support test

  • Loading branch information...
mgol committed Mar 7, 2017
1 parent bcec54e commit fc34dbc27124a49ba5e3d492de0bfc50fe75ba61
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/unit/css.js
View
@@ -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(

0 comments on commit fc34dbc

Please sign in to comment.