jacshore / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

epubcheck 3.0b3 reporting errors for CSS properties outside of the EPUB 3 CSS Profile #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

While CSS outside of the EPUB 3 CSS Profile is allowed, epubcheck is reporting 
it as an error.

METHOD:

Create an EPUB with this CSS, from the CSS Selectors module:

p > span:nth-child(even) {
    text-indent: 1em;
}

RESULT:

epubcheck 3.0b3 reports:

ERROR: ../childrens-book.epub/OEBPS/childrens-book-style.css: invalid pseudo 
function name nth-child(

EXPECTED:

A warning at most. The specification states:

'''[The EPUB] may include constructs not explicitly identified in the EPUB 3 
CSS Profile, but should be authored so that rendering fidelity does not depend 
on such additional constructs.'''

I suspect this type of issue will come up quite a bit, especially in the case 
where the out-of-spec CSS has universal coverage in all modern browsers 
(http://caniuse.com/#feat=css-sel3).  Perhaps making CSS checking report output 
at a different (low) warning level, or optional?  

Original issue reported on code.google.com by liza31337@gmail.com on 14 Dec 2011 at 2:53

Attachments:

GoogleCodeExporter commented 8 years ago
FYI, we don't explicitly check for in- vs out-of-css-profile usage (at this 
time, we only check the position and unicode-bidi properties, and collect 
URIs). 

My guess is that this is the underlying tokenizer only being aware of 2.0/2.1 
constructs and therefor barfing. I'll figure something out.

Original comment by markus.g...@gmail.com on 20 Dec 2011 at 12:17

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 20 Dec 2011 at 12:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r298.

Original comment by markus.g...@gmail.com on 22 Dec 2011 at 10:35