]> source.dussan.org Git - jquery.git/commitdiff
Tests: Indicate Firefox 106+ passes the `cssSupportsSelector` test
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Thu, 24 Nov 2022 23:54:56 +0000 (00:54 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Nov 2022 23:54:56 +0000 (00:54 +0100)
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

src/selector/support.js
test/unit/support.js

index 9763b00553a29286141354588e5edeab75df9d39..ea9f240503b8fb85bd9a10a95ba884e4088e7b8b 100644 (file)
@@ -3,7 +3,7 @@ import support from "../var/support.js";
 try {
        /* 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(...)" )`.
        //
        // `:is()` uses a forgiving selector list as an argument and is widely
index a3122e052c4612db1c592e07d50781217991bd5d..dc50700e89a90d2221b137f3299401516a1ad4d0 100644 (file)
@@ -70,10 +70,14 @@ testIframe(
                                cssSupportsSelector: false,
                                reliableTrDimensions: true
                        },
-                       firefox: {
+                       firefox_102: {
                                cssSupportsSelector: false,
                                reliableTrDimensions: false
                        },
+                       firefox: {
+                               cssSupportsSelector: true,
+                               reliableTrDimensions: false
+                       },
                        ios: {
                                cssSupportsSelector: false,
                                reliableTrDimensions: true
@@ -95,6 +99,8 @@ testIframe(
                expected = expectedMap.chrome;
        } else if ( /\b\d+(\.\d+)+ safari/i.test( userAgent ) ) {
                expected = expectedMap.safari;
+       } else if ( /firefox\/102\./i.test( userAgent ) ) {
+               expected = expectedMap.firefox_102;
        } else if ( /firefox/i.test( userAgent ) ) {
                expected = expectedMap.firefox;
        } else if ( /(?:iphone|ipad);.*(?:iphone)? os \d+_/i.test( userAgent ) ) {