The VoterEligibilityPage uses OutputPage::addModules to add the module ext.securepoll: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/SecurePoll/+/8f16fffa7fc130b5975c7e61324f16700d429978/includes/Pages/VoterEligibilityPage.php#398
The ext.securepoll module loads the file ext.securepoll.css: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/SecurePoll/+/8f16fffa7fc130b5975c7e61324f16700d429978/extension.json#47
OutputPage::addModules only loads a module if JS is enabled, so the CSS isn't being loaded for users without JS.
This results in styling discrepancies such as the field labels not being bold, and margins being too small:
JS enabled | JS disabled |
This can be solved by using OutputPage::addModuleStyles.