diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2022-11-25 00:54:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 00:54:56 +0100 |
commit | 716130e094caf780100a39cfd4526adbd7673b12 (patch) | |
tree | b5fea03c64430ba9270dc16d06c27046eac89fdd | |
parent | 4c1171f2ed62584211250df0af8302d34c04621a (diff) | |
download | jquery-716130e094caf780100a39cfd4526adbd7673b12.tar.gz jquery-716130e094caf780100a39cfd4526adbd7673b12.zip |
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
-rw-r--r-- | src/selector/support.js | 2 | ||||
-rw-r--r-- | test/unit/support.js | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/selector/support.js b/src/selector/support.js index 9763b0055..ea9f24050 100644 --- a/src/selector/support.js +++ b/src/selector/support.js @@ -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 diff --git a/test/unit/support.js b/test/unit/support.js index a3122e052..dc50700e8 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -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 ) ) { |