🌐 AI搜索 & 代理 主页
Skip to content

Commit 81d829b

Browse files
authored
Test: enable a spec testing CSS whitespace preserving in Edge 17
In Edge 14-16 setting a style property to a whitespace-only value resets it to the default, forcing us to skip a relevant CSS test in Edge. Now that Edge 17 has fixed the issue we can re-enable this test there. Ref gh-3204 Closes gh-4101
1 parent 2348f39 commit 81d829b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/css.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,11 +1348,11 @@ QUnit.test( "Keep the last style if the new one isn't recognized by the browser
13481348
assert.equal( el.css( "position" ), "absolute", "The old style is kept when setting an unrecognized value" );
13491349
} );
13501350

1351-
// Support: Edge 14 - 15
1351+
// Support: Edge 14 - 16 only
13521352
// Edge collapses whitespace-only values when setting a style property and
13531353
// there is no easy way for us to work around it. Just skip the test there
13541354
// and hope for the better future.
1355-
QUnit[ /\bedge\//i.test( navigator.userAgent ) ? "skip" : "test" ](
1355+
QUnit[ /\bedge\/16\./i.test( navigator.userAgent ) ? "skip" : "test" ](
13561356
"Keep the last style if the new one is a non-empty whitespace (gh-3204)",
13571357
function( assert ) {
13581358
assert.expect( 1 );

0 commit comments

Comments
 (0)