Historically, many wikis have been known to use the classes `successbox`, `messagebox`, `errorbox` and `warningbox` inside templates. Confusingly, these classes are also used inside MediaWiki core code to markup important system messages, such as the error that displays when you login with an invalid password.
Because of this we will be removing all CSS and HTML relating to these classes in MediaWiki core over the next month.
If you are a template developer, please check that if you using any of these classes that you are not relying on any of the styling rules that come from core to minimize any disruption to gadgets/scripts.
If you are intentionally using these classes and wish to continue to do so, [[ https://gerrit.wikimedia.org/r/c/mediawiki/core/+/757765 | a new method mw.util.messageBox will be provided ]] to support your use case. This API can be considered stable just like mw.util.addPortletLink.
If you have any concerns or questions please feel free to comment on this Phabricator ticket.