@@ -1379,7 +1379,7 @@ testIframe(
13791379 function ( assert , jQuery , window , document , widthBeforeSet , widthAfterSet ) {
13801380 assert . expect ( 2 ) ;
13811381
1382- // Support: Firefox 126+
1382+ // Support: Firefox 126 - 135 +
13831383 // Newer Firefox implements CSS zoom in a way it affects
13841384 // those values slightly.
13851385 assert . ok ( / ^ 1 0 0 (?: | \. 0 \d * ) p x $ / . test ( widthBeforeSet ) , "elem.css('width') works correctly with browser zoom" ) ;
@@ -1812,14 +1812,9 @@ QUnit.testUnlessIE( "css(--customProperty)", function( assert ) {
18121812
18131813 var div = jQuery ( "<div>" ) . appendTo ( "#qunit-fixture" ) ,
18141814 $elem = jQuery ( "<div>" ) . addClass ( "test__customProperties" )
1815- . appendTo ( "#qunit-fixture" ) ,
1816- webkitOrBlink = / w e b k i t \b / i. test ( navigator . userAgent ) ,
1817- expected = 20 ;
1815+ . appendTo ( "#qunit-fixture" ) ;
18181816
1819- if ( webkitOrBlink ) {
1820- expected -= 2 ;
1821- }
1822- assert . expect ( expected ) ;
1817+ assert . expect ( 20 ) ;
18231818
18241819 div . css ( "--color" , "blue" ) ;
18251820 assert . equal ( div . css ( "--color" ) , "blue" , "Modified CSS custom property using string" ) ;
@@ -1848,13 +1843,15 @@ QUnit.testUnlessIE( "css(--customProperty)", function( assert ) {
18481843 assert . equal ( $elem . css ( "--prop5" ) , "val5" , "Multiple Following whitespace trimmed" ) ;
18491844 assert . equal ( $elem . css ( "--prop6" ) , "val6" , "Preceding and Following whitespace trimmed" ) ;
18501845 assert . equal ( $elem . css ( "--prop7" ) , "val7" , "Multiple preceding and following whitespace trimmed" ) ;
1846+ assert . equal ( $elem . css ( "--prop8" ) , "\"val8\"" , "Works with double quotes" ) ;
18511847
1852- // Support: Chrome <=49 - 73+, Safari <=9.1 - 12.1+
1853- // Chrome treats single quotes as double ones.
1854- // Safari treats double quotes as single ones.
1855- if ( ! webkitOrBlink ) {
1856- assert . equal ( $elem . css ( "--prop8" ) , "\"val8\"" , "Works with double quotes" ) ;
1848+ // Support: Safari <=9.1 - 18.1+
1849+ // Safari converts single quotes to double ones.
1850+ if ( ! / \b a p p l e w e b k i t \/ 6 0 5 \. 1 \. 1 5 \b / i. test ( navigator . userAgent ) ) {
18571851 assert . equal ( $elem . css ( "--prop9" ) , "'val9'" , "Works with single quotes" ) ;
1852+ } else {
1853+ assert . equal ( $elem . css ( "--prop9" ) . replace ( / " / g, "'" ) , "'val9'" ,
1854+ "Works with single quotes, but they may be changed to double ones" ) ;
18581855 }
18591856
18601857 assert . equal ( $elem . css ( "--prop10" ) , "val10" , "Multiple preceding and following escaped unicode whitespace trimmed" ) ;
0 commit comments