Sample code
A:
/** * Global styles */ @import url("https://meta.wikimedia.org/w/load.php?only=styles&modules\ =ext.globalCssJs.user.styles\ &user=ExE_Boss");
B:
/** * Global styles * * The CSS minifier is buggy, so we (ab)use that by (ab)using comments * where CSS expects a multiline string: * (this is normally a syntax error!) */ @import url(https://meta.wikimedia.org/w/load.php?only=styles&modules/* */=ext.globalCssJs.user.styles/* */&user=ExE_Boss);
Source: https://wikitech.wikimedia.org/wiki/User:ExE_Boss/common.css
Expected behaviour
A:
@import url("https://meta.wikimedia.org/w/load.php?only=styles&modules=ext.globalCssJs.user.styles&user=ExE_Boss");
B:
/* syntax error */
Actual behaviour
A:
@import url("https://meta.wikimedia.org/w/load.php?only=styles&modules\\ =ext.globalCssJs.user.styles\\ &user=ExE_Boss"); /* malformed URL */
B:
@import url(https://meta.wikimedia.org/w/load.php?only=styles&modules=ext.globalCssJs.user.styles&user=ExE_Boss);
Version
MediaWiki | 1.37.0-wmf.16 (b771890) 2021-07-28T18:05:45 |