Bug 695971 - CSS identifiers wrongly parsed as colors (ePub)
Summary: CSS identifiers wrongly parsed as colors (ePub)
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: Other All
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks: 695935
  Show dependency tree
 
Reported: 2015-04-28 10:09 UTC by Pablo Rodríguez
Modified: 2015-05-18 05:15 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
ePub with CSS selectors for unique identifiers parsed as colors (3.39 KB, application/epub+zip)
2015-04-28 10:09 UTC, Pablo Rodríguez
Details

Note You need to log in before you can comment on or make changes to this bug.
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.