Background
The style linter is flagging the usage of unsupported CSS properties: position: sticky and scroll-margin-top. If we intend to use properties that are unsupported in MediaWiki's modern grade A browsers, we should document a browser compatibility policy on the MediaWiki project page.
Browser compatibility:
- https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix
- position: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position#browser_compatibility
- scroll-margin-top: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scroll-margin-top#browser_compatibility
Linter output:
Running "stylelint:all" (stylelint) task >> resources/ext.readerExperiments.stickyHeaders.styles/stickyHeaders.less >> 5:2 ⚠ Unexpected browser feature "css-sticky" is not supported by Chrome 49,50,51,52,53,54,55 plugin/no-unsupported-browser-features >> 12:4 ⚠ Unexpected browser feature "css-snappoints" is not supported by Chrome 49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68 plugin/no-unsupported-browser-features >> >> resources/ext.readerExperiments.stickyHeaders.legacy/styles/overrides.less >> 9:3 ⚠ Unexpected browser feature "css-sticky" is not supported by Chrome 49,50,51,52,53,54,55 plugin/no-unsupported-browser-features >> 16:4 ⚠ Unexpected browser feature "css-snappoints" is not supported by Chrome 49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68 plugin/no-unsupported-browser-features >> >> ⚠ 4 problems (0 errors, 4 warnings)
Requirements
- Consider adding CSS to improve support with older versions of Safari - older iPhone (cant upgrade to newer version)
- Convert task - Lets check the status on the legacy status
- Do a quick test on legacy version of iOS 12
- Webkit sticky and position sticky
- Look into how to test in old browsers
