Bug 695971

Summary: CSS identifiers wrongly parsed as colors (ePub)
Product: MuPDF Reporter: Pablo Rodríguez <ghostscript>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: tor.andersson
Priority: P4    
Version: unspecified   
Hardware: Other   
OS: All   
Customer: Word Size: ---
Bug Depends on:    
Bug Blocks: 695935    
Attachments: ePub with CSS selectors for unique identifiers parsed as colors

Description Pablo Rodríguez 2015-04-28 10:09:07 UTC
Created attachment 11631 [details]
ePub with CSS selectors for unique identifiers parsed as colors

The attached ePub file contains the following CSS code:

    #myownclass > h1 {
        font-weight: normal;
        font-style: italic;
        }
    
    #myownclass > p {
        font-weight: bold;
        text-align: right;
        }

When I open it with mupdf from master, I get the following errors:

    error: css syntax error: invalid color (stylesheet.css:1)
    warning: ignoring stylesheet stylesheet.css
    epub: found spine ch001.xhtml
    error: css syntax error: invalid color (stylesheet.css:1)
    warning: ignoring stylesheet stylesheet.css

I”m afraid that mupdf is parsing as colors what are CSS selectors for unique identifiers.

Could you fix this?
Comment 1 Pablo Rodríguez 2015-05-04 10:28:14 UTC
Fixed in master. Issue may be closed.

Tor, many thanks for all improved code from today.