-
Notifications
You must be signed in to change notification settings - Fork 108
Description
Description:
We are encountering a rendering issue when displaying some EPUB files using Readium version 3.1.1.Specifically, certain sections that use a <p>
tag combined with <span>
tags to emulate numbered or bulleted lists appear overlapped and unreadable.
This issue is confirmed on multiple physical devices, but does not occur on Android Studio emulators. Additionally, when rotating the screen to landscape and then returning to portrait, the rendering corrects itself. This behavior suggests a layout recalculation issue triggered by rotation.
Here is an example of the kind of (simplified) HTML structure causing the issue:
Text rendering issue in EPUB: overlapping and unreadable content when using <p>
and <span>
in bullet-like structures
<div class="main">
<div class="text-block indented">
<p><span class="number">2.</span> <span class="bold">Consider channel creation authority.</span> Individuals can usually create channels freely, but...</p>
<p><span class="number">3.</span> <span class="bold">Add channel descriptions.</span> Descriptions help all members understand channel purpose, enabling appropriate communication.</p>
<p><span class="number">4.</span> <span class="bold">Create department channels.</span> It's helpful to reflect the org chart with corresponding channels.</p>
<p><span class="number">5.</span> <span class="bold">Use naming conventions.</span> This ensures better organization and information retrieval.</p>
</div>
</div>
CSS excerpt:
.hltr .indented { text-indent: -2em; padding-left: 2em; }
Other notes:
- This issue occurs in other sections of the EPUB using similar
<p><span>...</span></p>
patterns. - All affected paragraphs use negative
text-indent
values with correspondingpadding-left
.
Expected Behavior:
The text should display cleanly without overlapping, as it does after screen rotation or on emulator.
Actual Behavior:
Text appears overlapped and unreadable in the initial portrait rendering on physical devices.
Devices Confirming the Issue (Reproducible):
The issue consistently occurs on the following physical devices:
- Pixel 9a
- Android Version: 15
- System WebView: Android System WebView(137.0.7151.115)
- arrows F-41B
- Android Version: 12
- System WebView: Android System WebView(137.0.7151.116)
- Galaxy A21
- Android Version: 11
- System WebView: Android System WebView(137.0.7151.115)
Devices Without the Issue (Not Reproducible):
On the following physical devices, the issue does not occur:
- AQUOS
- Android Version: 15
- System WebView: Android System WebView(137.0.7151.115)