Recently, images have had their vertical alignment CSS stripped and replaced with classes like .mw-valign-middle
This breaks some constructs at enWS, such as https://en.wikisource.org/wiki/Template:Custom_rule, which needs vertical-align:middle (and actually does export surprisingly well).
I have worked around it for now by adding the following to the https://en.wikisource.org/wiki/MediaWiki:Epub.css:
/* * Parsoid vertical alignment classes */ .mw-valign-middle { vertical-align: middle; } .mw-valign-baseline { vertical-align: baseline; } .mw-valign-sub { vertical-align: sub; } .mw-valign-super { vertical-align: super; } .mw-valign-top { vertical-align: top; } .mw-valign-text-top { vertical-align: text-top; } .mw-valign-bottom { vertical-align: bottom; } .mw-valign-text-bottom { vertical-align: text-bottom; }
- Is this CSS right?
- Should Parsoid CSS be injected by the export tool rather than making the individual wikis add stuff to their Epub.css