From dd969e2f6814b2783f2e1ff0ab31baec83baaff8 Mon Sep 17 00:00:00 2001 From: earth Date: Mon, 28 Mar 2022 20:48:20 -0500 Subject: [PATCH] Update the browser requirements We use `justify-content: space evenly` several times, and it needs to be supported for some fairly essential features. Its browser compatibility is later than css-vars; however, the difference is not substantial (see https://canary.discord.com/channels/351476683016241162/352064015486287874/958179231492345896) --- .browserslistrc | 2 +- javascripts/supported-browsers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index b4cc5781d..0b90a0311 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -1 +1 @@ -> 0.1% and not dead and supports css-variables \ No newline at end of file +> 0.1% and not dead and supports justify-content-space-evenly \ No newline at end of file diff --git a/javascripts/supported-browsers.js b/javascripts/supported-browsers.js index d88d73f5f..4315d8594 100644 --- a/javascripts/supported-browsers.js +++ b/javascripts/supported-browsers.js @@ -1 +1 @@ -export const supportedBrowsers = /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(9[_.]3|9[_.]([4-9]|\d{2,})|([1-9]\d|\d{3,})[_.]\d+|12[_.]2|12[_.]([3-9]|\d{2,})|12[_.]5|12[_.]([6-9]|\d{2,})|(1[3-9]|[2-9]\d|\d{3,})[_.]\d+|13[_.]3|13[_.]([4-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|(CFNetwork\/8.* Darwin\/16\.5\.\d+)|(CFNetwork\/8.* Darwin\/16\.6\.\d+)|(CFNetwork\/8.* Darwin\/16\.7\.\d+)|((?:Chrome).*OPR\/(79\.0|79\.([1-9]|\d{2,})|([8-9]\d|\d{3,})\.\d+)\.\d+)|(SamsungBrowser\/(13\.0|13\.([1-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+))|(Edge\/(93(?:\.0)?|93(?:\.([1-9]|\d{2,}))?|(9[4-9]|\d{3,})(?:\.\d+)?))|((Chromium|Chrome)\/(49\.0|49\.([1-9]|\d{2,})|([5-9]\d|\d{3,})\.\d+|79\.0|79\.([1-9]|\d{2,})|([8-9]\d|\d{3,})\.\d+|85\.0|85\.([1-9]|\d{2,})|(8[6-9]|9\d|\d{3,})\.\d+|89\.0|89\.([1-9]|\d{2,})|(9\d|\d{3,})\.\d+)(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78\.0|78\.([1-9]|\d{2,})|(79|[8-9]\d|\d{3,})\.\d+|92\.0|92\.([1-9]|\d{2,})|(9[3-9]|\d{3,})\.\d+)\.\d+)|(Firefox\/(78\.0|78\.([1-9]|\d{2,})|(79|[8-9]\d|\d{3,})\.\d+|92\.0|92\.([1-9]|\d{2,})|(9[3-9]|\d{3,})\.\d+)(pre|[ab]\d+[a-z]*)?)/; \ No newline at end of file +export const supportedBrowsers = /((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(10[_.]3|10[_.]([4-9]|\d{2,})|(1[1-9]|[2-9]\d|\d{3,})[_.]\d+|12[_.]2|12[_.]([3-9]|\d{2,})|12[_.]5|12[_.]([6-9]|\d{2,})|(1[3-9]|[2-9]\d|\d{3,})[_.]\d+|13[_.]3|13[_.]([4-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|(CFNetwork\/8.* Darwin\/16\.5\.\d+)|(CFNetwork\/8.* Darwin\/16\.6\.\d+)|(CFNetwork\/8.* Darwin\/16\.7\.\d+)|((?:Chrome).*OPR\/(79\.0|79\.([1-9]|\d{2,})|([8-9]\d|\d{3,})\.\d+)\.\d+)|(SamsungBrowser\/(13\.0|13\.([1-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+))|(Edge\/(93(?:\.0)?|93(?:\.([1-9]|\d{2,}))?|(9[4-9]|\d{3,})(?:\.\d+)?))|((Chromium|Chrome)\/(79\.0|79\.([1-9]|\d{2,})|([8-9]\d|\d{3,})\.\d+|85\.0|85\.([1-9]|\d{2,})|(8[6-9]|9\d|\d{3,})\.\d+|89\.0|89\.([1-9]|\d{2,})|(9\d|\d{3,})\.\d+)(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78\.0|78\.([1-9]|\d{2,})|(79|[8-9]\d|\d{3,})\.\d+|92\.0|92\.([1-9]|\d{2,})|(9[3-9]|\d{3,})\.\d+)\.\d+)|(Firefox\/(78\.0|78\.([1-9]|\d{2,})|(79|[8-9]\d|\d{3,})\.\d+|92\.0|92\.([1-9]|\d{2,})|(9[3-9]|\d{3,})\.\d+)(pre|[ab]\d+[a-z]*)?)/; \ No newline at end of file