Footnote popups: drop justification if RTL content

MuPDF does not handle "text-align: justify" correctly on
RTL text: the last line is left-aligned, but it should be
right-aligned.
Not using justify makes it correctly right align the whole
text.
pull/5788/head
poire-z 4 years ago
parent 8110c68e29
commit 2d02ade498

@ -81,6 +81,11 @@ a { color: black; } /* MuPDF: color: #06C; */
* Wikipedia EPUBs, each footnote is a LI */
body > li { list-style-type: none; }
/* MuPDF always aligns the last line to the left when text-align: justify,
* which is wrong with RTL. So cancel justification on RTL elements: they
* will be correctly aligned to the right */
*[dir=rtl] { text-align: initial; }
/* Remove any (possibly multiple) backlinks in Wikipedia EPUBs footnotes */
.noprint { display: none; }
]]

Loading…
Cancel
Save