Skip to content

Commit 50e0086

Browse files
committed
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 (cherry picked from commit 716130e)
1 parent 19a02b5 commit 50e0086

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

src/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ function setDocument( node ) {
570570
return document.querySelectorAll( ":scope" );
571571
} );
572572

573-
// Support: Chrome 105+, Firefox 104+, Safari 15.4+
573+
// Support: Chrome 105+, Firefox <106, Safari 15.4+
574574
// Make sure forgiving mode is not used in `CSS.supports( "selector(...)" )`.
575575
//
576576
// `:is()` uses a forgiving selector list as an argument and is widely

test/unit/support.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,31 @@ testIframe(
209209
sortStable: true
210210
},
211211
firefox: {
212+
ajax: true,
213+
boxSizingReliable: true,
214+
checkClone: true,
215+
checkOn: true,
216+
clearCloneStyle: true,
217+
cssSupportsSelector: true,
218+
cors: true,
219+
createHTMLDocument: true,
220+
disconnectedMatch: true,
221+
focusin: false,
222+
getById: true,
223+
noCloneChecked: true,
224+
option: true,
225+
optSelected: true,
226+
pixelBoxStyles: true,
227+
pixelPosition: true,
228+
radioValue: true,
229+
reliableMarginLeft: true,
230+
reliableTrDimensions: false,
231+
scope: true,
232+
scrollboxSize: true,
233+
sortDetached: true,
234+
sortStable: true
235+
},
236+
firefox_102: {
212237
ajax: true,
213238
boxSizingReliable: true,
214239
checkClone: true,
@@ -418,8 +443,10 @@ testIframe(
418443
expected = expectedMap.chrome;
419444
} else if ( /\b(?:9|10)\.\d+(\.\d+)* safari/i.test( userAgent ) ) {
420445
expected = expectedMap.safari_9_10;
421-
} else if ( /firefox\/(?:4\d|5\d|60)/i.test( userAgent ) ) {
446+
} else if ( /firefox\/[456]\d\b/i.test( userAgent ) ) {
422447
expected = expectedMap.firefox_60;
448+
} else if ( /firefox\/(?:[789]\d|102)\b/i.test( userAgent ) ) {
449+
expected = expectedMap.firefox_102;
423450
} else if ( /firefox/i.test( userAgent ) ) {
424451
expected = expectedMap.firefox;
425452
} else if ( /android 4\.[0-3]/i.test( userAgent ) ) {

0 commit comments

Comments
 (0)