Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2015, 07:38 AM   #1
soparch
Enthusiast
soparch began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jun 2010
Device: none
Validation Error epub3

Can anyone help?
I have this piece of code showing up as a warning after validation (the funny thing is that the code passes when you use EPubcheck 4.0.0 but when you use EPubcheck 3.0.1 this warning appears)

background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 26, from(white), color-stop(0.4, rgba(248,255,128,.5)), to(transparent) );

The warning is "WARNING: file.epub/OEBPS/css/p09.css(2): Token ')' not allowed here"
For the life of me I cannot see what is wrong - obviously something is but I cannot see it.

I am trying to upload to Kobo who must be using the older version of EPubcheck as they say it does not validate properly.
Thanks in advance
Soparch
soparch is offline   Reply With Quote
Old 12-01-2015, 08:52 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
This is definitely an epubcheck 3.01. bug. Apparently it doesn't like rgb color-stop values. Try replacing them with a hex value. The following appears to work:

Code:
background-image: -webkit-gradient(radial,50% 50%, 0, 50% 50%, 26,from(white),color-stop(0.4, #F8FF80),to(transparent));
At least it causes no validation errors.
Doitsu is offline   Reply With Quote
Advert
Old 12-01-2015, 11:38 PM   #3
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Doitsu View Post
This is definitely an epubcheck 3.01. bug. Apparently it doesn't like rgb color-stop values. Try replacing them with a hex value. The following appears to work:

Code:
background-image: -webkit-gradient(radial,50% 50%, 0, 50% 50%, 26,from(white),color-stop(0.4, #F8FF80),to(transparent));
At least it causes no validation errors.
Except that loses the 50% opacity of the color stop, unless I'm missing something.

Better to email Kobo and ask them to update their buggy validator. :-)

You might also try adding a space between the close parentheses in case it's a really silly parser bug.
dgatwood is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB3 footnote validation roger64 Workshop 11 06-03-2015 07:56 AM
iBooks TOC error in EPUB3 brownetu ePub 13 08-15-2014 01:32 AM
Epub3 XHTML Validation epub3 Ramesh Arpitha ePub 5 06-30-2014 08:32 PM
Validation errors on epub3 sheet music document maestroc ePub 9 11-05-2013 06:43 PM


All times are GMT -4. The time now is 10:56 PM.


MobileRead.com is a privately owned, operated and funded community.