mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Indicate Firefox 106+ passes the cssSupportsSelector
test
Firefox 106 adjusted to the spec mandating that `CSS.supports("selector(...)")` uses non-forgiving parsing which makes it pass the relevant support test. Closes gh-5141
This commit is contained in:
parent
4c1171f2ed
commit
716130e094
@ -3,7 +3,7 @@ import support from "../var/support.js";
|
|||||||
try {
|
try {
|
||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
|
|
||||||
// Support: Chrome 105+, Firefox 104+, Safari 15.4+
|
// Support: Chrome 105+, Firefox <106, Safari 15.4+
|
||||||
// Make sure forgiving mode is not used in `CSS.supports( "selector(...)" )`.
|
// Make sure forgiving mode is not used in `CSS.supports( "selector(...)" )`.
|
||||||
//
|
//
|
||||||
// `:is()` uses a forgiving selector list as an argument and is widely
|
// `:is()` uses a forgiving selector list as an argument and is widely
|
||||||
|
@ -70,10 +70,14 @@ testIframe(
|
|||||||
cssSupportsSelector: false,
|
cssSupportsSelector: false,
|
||||||
reliableTrDimensions: true
|
reliableTrDimensions: true
|
||||||
},
|
},
|
||||||
firefox: {
|
firefox_102: {
|
||||||
cssSupportsSelector: false,
|
cssSupportsSelector: false,
|
||||||
reliableTrDimensions: false
|
reliableTrDimensions: false
|
||||||
},
|
},
|
||||||
|
firefox: {
|
||||||
|
cssSupportsSelector: true,
|
||||||
|
reliableTrDimensions: false
|
||||||
|
},
|
||||||
ios: {
|
ios: {
|
||||||
cssSupportsSelector: false,
|
cssSupportsSelector: false,
|
||||||
reliableTrDimensions: true
|
reliableTrDimensions: true
|
||||||
@ -95,6 +99,8 @@ testIframe(
|
|||||||
expected = expectedMap.chrome;
|
expected = expectedMap.chrome;
|
||||||
} else if ( /\b\d+(\.\d+)+ safari/i.test( userAgent ) ) {
|
} else if ( /\b\d+(\.\d+)+ safari/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.safari;
|
expected = expectedMap.safari;
|
||||||
|
} else if ( /firefox\/102\./i.test( userAgent ) ) {
|
||||||
|
expected = expectedMap.firefox_102;
|
||||||
} else if ( /firefox/i.test( userAgent ) ) {
|
} else if ( /firefox/i.test( userAgent ) ) {
|
||||||
expected = expectedMap.firefox;
|
expected = expectedMap.firefox;
|
||||||
} else if ( /(?:iphone|ipad);.*(?:iphone)? os \d+_/i.test( userAgent ) ) {
|
} else if ( /(?:iphone|ipad);.*(?:iphone)? os \d+_/i.test( userAgent ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user