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

Commit 8d89666

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.
1 parent bcd9c2b commit 8d89666

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/selector/support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import support from "../var/support.js";
33
try {
44
/* eslint-disable no-undef */
55

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

test/unit/support.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ testIframe(
7070
cssSupportsSelector: false,
7171
reliableTrDimensions: true
7272
},
73-
firefox: {
73+
firefox_102: {
7474
cssSupportsSelector: false,
7575
reliableTrDimensions: false
7676
},
77+
firefox: {
78+
cssSupportsSelector: true,
79+
reliableTrDimensions: false
80+
},
7781
ios: {
7882
cssSupportsSelector: false,
7983
reliableTrDimensions: true
@@ -88,6 +92,8 @@ testIframe(
8892
expected = expectedMap.chrome;
8993
} else if ( /\b\d+(\.\d+)+ safari/i.test( userAgent ) ) {
9094
expected = expectedMap.safari;
95+
} else if ( /firefox\/102\./i.test( userAgent ) ) {
96+
expected = expectedMap.firefox_102;
9197
} else if ( /firefox/i.test( userAgent ) ) {
9298
expected = expectedMap.firefox;
9399
} else if ( /(?:iphone|ipad);.*(?:iphone)? os \d+_/i.test( userAgent ) ) {

0 commit comments

Comments
 (0)