Created attachment 11700 [details] ePub with text-top sup and text-bottom sub Tor, the attached file shows that the following CSS code doesn’t work: sup { line-height: normal; vertical-align: text-top; font-size: 75%; } sub { line-height: normal; vertical-align: text-bottom; font-size: 75%; } mupdf doesn’t place the characters right, when text-top or text-bottom values are selected for the vertical-align property. Many thanks for your help, Pablo
Created attachment 11701 [details] mupdf vs. ebook-viewer display mupdf display on the left and ebook-viewer display on the right. BTW, text-bottom doesn’t seem to be implemented in ebook-viewer from calibre.
Sebastian, many thanks for your commit: commit 93699403812c87a8d96d0029f37134cf86e86205 Author: Sebastian Rasmussen <sebras@gmail.com> Date: Tue Feb 2 00:26:01 2016 +0100 html: Support vertical alignment to top/bottom of parent box Fixes http://bugs.ghostscript.com/show_bug.cgi?id=696004 I’m afraid I still experience an issue with "vertical-align: text-top". The content isn’t placed any higher than without this property. "vertical-align: text-bottom" works perfectly fine here. I attach new versions of the ePub file and display with a clearer sample.
Created attachment 12319 [details] ePub with text-top sup and text-bottom sub
Created attachment 12320 [details] mupdf vs. ebook-viewer display
Thanks for reporting this Pablo. Using your excellent sample files I could easily confirm what you saw. I'll look into it.
(In reply to Sebastian Rasmussen from comment #5) > Thanks for reporting this Pablo. Using your excellent sample files I could > easily confirm what you saw. I'll look into it. Many thanks for your work with mupdf and your kind words, Sebras. I cannot contribute code, so I report the issues the best way they may help to developers to fix them :-).
commit 935f1ba5c2a4c67d98658d72322ae11402d380d0 Author: Tor Andersson <tor.andersson@artifex.com> Date: Wed Apr 6 00:05:32 2016 +0200 epub: Fix vertical-align: text-top and text-bottom.