Follow-up from T233160 (/cc @Volker_E @Jdlrobson)
+ public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) { + if ( …) { + $out->addModuleStyles( [ + 'skins.minerva.messageBox.styles' + ] ); + } + }
Avoid using onBeforePageDisplay for the purpose of page-related or skin-related stylesheets. This means they are missing from Parse API requests and various use cases (including alignment with T140664). This is what Skin::getDefaultModules is for, as done via SkinMinerva->getSkinStyles for various other use cases already.
Notes
This task will hopefully lead to an understanding in how we add CSS to page views in skins.