MediaWiki's browser compatibility policy enumerates the specific browsers and browser versions that fall into the Modern (Grade A) and Basic (Grade C) levels of browser support. Aside from Modern support for Chrome, Edge, and Safari, which includes the last three years' versions on a rolling basis, all these levels are defined simply by a version number and need to be periodically updated to allow new software features to come into use in MediaWiki. I believe it would be better if clear support targets were included for all browsers, both for Basic and Modern support. (Exceptions could be made as needed, of course, e.g. dropping versions ahead of time or keeping them longer than usual.)
The current Basic support versions of Chrome, Firefox, and Safari are all from about 10 years ago, so we could target the last 10 years' versions for each of them going forward, and do the same for Edge once we hit 2030 (since it will then have been Chromium-based for 10 years). However, those decade-old versions became the Basic support versions about 2 years ago, so we could target the last 8 years' versions instead, which would now put us around Chrome 68, Firefox 61, and Safari 11. Or, we could aim for 6 years (3 years Modern, 3 years Basic), which would put us around Chrome 84, Edge 84, Firefox 79, and Safari 13.
Safari 12.1, the new Modern Safari baseline, is 7 years old, so we could target the last 7 years' versions of Safari for Modern support. However, when the previous Modern baseline (Safari 11) was set, it was only 5 years old, so we could target the last 5 years' versions instead, which would put us around Safari 14. Or, we could aim for 3 years, to match the existing Modern target for Chrome, Edge, and Firefox, which would put us around Safari 16.
Similar logic would apply to iOS and Android.
Of course, the deciding factor here is usage statistics, and I don't know what the exact numbers are. Further analysis will be needed to determine what the best support targets are.
@Krinkle Adding you since I know you're much more knowledgeable and experienced in this area than I; feel free to correct me on anything I got wrong, or decline this if I'm completely off-base. :)
Acceptance criteria
- Decide on browser support targets
- Update https://www.mediawiki.org/wiki/Template:Compatibility_browser with new support targets
- Update browserslist-config-wikimedia to reflect new support targets
- Update stylelint-config-wikimedia with newly-allowed CSS features (if any)
- Draft an entry for Tech News