aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-03-27 22:54:35 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2023-03-27 22:54:35 +0200
commit759232e5af0eeba3c3107b6e8d20ab79aaf6ca6e (patch)
treea866189c2c8b25336d87365ccf16082627ce456b
parent3eed28209ed02eca498095b597727bf1f98163aa (diff)
downloadjquery-759232e5af0eeba3c3107b6e8d20ab79aaf6ca6e.tar.gz
jquery-759232e5af0eeba3c3107b6e8d20ab79aaf6ca6e.zip
Tests: Fix tests added in gh-5233
-rw-r--r--test/unit/css.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 16edd50ba..e81ca150c 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -1234,8 +1234,6 @@ QUnit.test( "Do not append px (trac-9548, trac-12990, gh-2792, gh-5179)", functi
// 'WebkitAspectRatio' which interferes with this test.
if ( $div.css( "-webkit-aspect-ratio" ) !== "auto" ) {
$div.css( "aspect-ratio", 2 );
- console.log( "getComputedStyle( $div[ 0 ] ).aspectRatio",
- getComputedStyle( $div[ 0 ] ).aspectRatio );
window.div = $div[ 0 ];
if ( $div.css( "aspect-ratio" ) !== undefined ) {
assert.equal( $div.css( "aspect-ratio" ), "2 / 1",
@@ -1248,11 +1246,15 @@ QUnit.test( "Do not append px (trac-9548, trac-12990, gh-2792, gh-5179)", functi
}
$div.css( "border-image-slice", 2 );
- if ( $div.css( "border-image-slice" ) !== undefined ) {
+ if ( $div.css( "border-image-slice" ) !== undefined &&
+
+ // Support: Firefox <=48-54 only
+ // Older Firefox serializes 'border-image-slice' differently.
+ !/firefox\/48\./i.test( navigator.userAgent ) ) {
assert.equal( $div.css( "border-image-slice" ), "2",
"Does not append px to 'border-image-slice'" );
} else {
- assert.ok( true, "No support for 'border-image-slice' CSS property" );
+ assert.ok( true, "No or broken support for 'border-image-slice' CSS property" );
}
$div.css( "column-count", 1 );