Reflowable EPUB2 book renders blank content pages (due to print-media `.noprint` class) and floated images sized incorrectly in paged mode
Bug Description
Testing with a real-world reflowable EPUB2 book (InDesign/Sigil-exported, no EPUB3 nav document originally), I found two separate rendering issues in paged mode that do not occur in Calibre's viewer or in a plain browser (Chrome, opening the extracted XHTML directly):
1. Content pages render completely blank
Every content XHTML file in this book has <body class="noprint">, paired with an inline stylesheet in each page's <head>:
This rule is scoped to media="print" and should have no effect on screen rendering. However, in Readest's paged reading mode, every page rendered completely blank (including the cover) — only a hand-authored nav.xhtml (which lacked the noprint class) displayed correctly. Removing class="noprint" from every content page's <body> immediately fixed the blank-page issue. This suggests the paginator may be evaluating @media print styles (perhaps as part of pagination/column-width calculation), incorrectly hiding real content.
2. Text-wrapped (floated) images render far too small in paged/column mode The book uses a common float-based text-wrap pattern for small inline figures:
30% width being resolved against a narrower per-column width from the multi-column pagination layout, rather than the full page/viewport width.
Steps to Reproduce
- Open the attached EPUB (reflowable EPUB2, float-based text-wrap images,
noprintclass on every page body) in Readest, in Paged mode. - Observe blank pages before removing
noprint. - After removing
noprint(content now visible), observe undersized floated images compared to Calibre / plain-browser rendering of the same XHTML+CSS.
Expected Behavior
@media print-scoped rules should never affect on-screen paginated rendering.- Percentage widths on floated elements should resolve consistently with how a single-column/full-page browser view would render them, so book styling looks the same across reading modes.
Reproduction File
No response
Operating System
iOS/iPadOS
OS Version
26.5
Readest Version
0.12.8
Custom CSS
No response
Source: readest/readest