epubcheck icon indicating copy to clipboard operation
epubcheck copied to clipboard

ePub validation warning: Token '0%' not allowed here

Open ashutosh1290 opened this issue 12 years ago • 2 comments

Hi, I have created one epub and used following css3 features in epub:

@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }

While epub is validating through epub checker 3.0 then checker is generating warning: "WARNING: mimetype.epub/OPS/assets/css/main.css(696): Token '0%' not allowed here"

Please suggest how can fix this warning.

Thanks, Ashu

ashutosh1290 avatar Dec 03 '14 05:12 ashutosh1290

This needs to be reviewed as the original request was based upon EpubCheck 3.0

tofi86 avatar Jan 02 '17 19:01 tofi86

The current EpubCheck version 4.0.2 and the current development version do not throw this error anymore.

I tested with a basic EPUB and the following CSS snippet:

@-webkit-keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

tofi86 avatar Jul 04 '17 08:07 tofi86