This issue seems to be unrelated to platforms, as it was reproduced with both Chrome on desktops and android devices.
- Related website: https://zh.moegirl.org/Special:Version (Chinese)
- Some softwares involved: Mediawiki 1.31.5 (6504d64), Widgets 1.3.0 (72d1e24), TemplateStyles 1.0 (e5da5c0), Mobile Frontend 2.1.0 (7f66849)
To reproduce:
# Create a Widget that contains jQuery script.
# Create a CSS stylesheet that contains media query. Change the content model to pure CSS.
# Add the widget and the CSS stylesheet linked via <templatestyles> onto a wiki page.
# View the saved page on mobile frontend.
Observed results:
- The widget behaves unpredictably; often, part of the script is cut off and treated as pure text.
- The linked stylesheet may or may not fail.
- The problem is more pronounced if the page contain large amount of entries, for example repeated calls of templates that make use of templatestyles.
Expected result:
- The widget and templatestyles behave as they should.