conversion ignores "*" css selector

Bug #1369753 reported by Tor Andersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

An EPUB with a CSS selector consisting of a plain wildcard, is not applied to the proper elements,
resulting in messed up paragraph spacing and margins if converting to MOBI.

Test a plain HTML page with this stylesheet:

* { margin: 0 }
p { text-indent: 1em }

Viewed as EPUB, the book has indented paragraphs with no space between. Converted to MOBI, the book has indented paragraphs with space between (default margins, as if the "*" selector was ignored).

This is a common selector in stylesheets from Hachette's recent book releases.

Tested with several versions of calibre. The problem still exists in version 2.3.0.

Revision history for this message
Tor Andersson (tor-b) 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 Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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