Class applied to html element is lost during conversion

Bug #1862401 reported by John Howell
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

The style definition of a class applied only to the <html> element is eliminated by the CSS flattening that occurs during conversion. Perhaps it is being treated as unreferenced.

I am attaching a simple EPUB that demonstrates this problem. Text is made bold using a class named boldness applied to the html element. It displays properly before conversion. After an EPUB to EPUB conversion the boldness class is missing from the stylesheet.

Tested using calibre 4.10.1 64-bit under Windows 10.

Revision history for this message
John Howell (jhowell-o) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
John Howell (jhowell-o) wrote :

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.