Bug 263046 - Epub displaying text with display:none and visibility:hidden in CSS
Summary: Epub displaying text with display:none and visibility:hidden in CSS
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: EPub backend (show other bugs)
Version: 21.04.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 17:57 UTC by Erik
Modified: 2021-07-02 06:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
sample epub (793.26 KB, application/octet-stream)
2012-05-14 15:58 UTC, Erik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2011-01-13 17:57:46 UTC
Version:           0.11.1 (using KDE 4.5.1) 
OS:                Linux

When viewing an .epub file with some footnotes, I noticed that the rendering is not following the display:none and visibility:hidden styles in the CSS, but is displaying the hidden text.

Reproducible: Always

Steps to Reproduce:
Open an .epub file that contains XHTML text that is styled with display:none and visibility:hidden in the CSS.

Actual Results:  
The text is rendered by the viewer.

Expected Results:  
Text should not be displayed by the viewer.
Comment 1 Ely 2012-05-04 12:59:25 UTC
Can you provide us with an example epub file?
Comment 2 Erik 2012-05-14 15:58:15 UTC
Created attachment 71092 [details]
sample epub

Sample Sena language data from SIL FieldWorks. Note in PartFile00001_.xhtml that span elements of class "scrBookName" and "scrBookCode" are being rendered even though they are marked as display : none; visibility: hidden; in the book.css file.
Comment 3 Justin Zobel 2021-03-09 23:59:22 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 4 Andrius 2021-07-02 06:15:25 UTC
Still happening in 21.04.1