Follow up to T326587
Vector is now using the Codex message box CSS component. It is common for messages to contain p elements (see example) and these often have default margins (in Vector 2022 styled by .vector-body p. Since messages are wrapped in mw-parser-output and these messages are often within the content area, the only way Vector 2022 can address this is by introducing a rule cdx-message__content p { margin: 0;} however it seems more useful that this is done inside Codex itself.
This may also be a problem for other elements e.g. heading tags, but I'm currently not seeing any specific examples of where those are being used.
We may also want to consider a set of Wikimedia-styles shipped inside MediaWiki core e.g. .cdx-message__content .mw-parser-output > * { margin: 0;}
Example:

