Bug 263046

Summary: Epub displaying text with display:none and visibility:hidden in CSS
Product: [Applications] okular Reporter: Erik <ebrommers>
Component: EPub backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, andrius.puksta, elylevy
Priority: NOR    
Version: 21.04.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: sample epub

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