View Single Post
Old 10-13-2019, 08:00 PM   #36
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by odamizu View Post
But at least I got rid of the widows/orphans validation error


Quote:
Originally Posted by yekim54 View Post
Same here. I've been using the advice in the following post the past 9+ years
Well wipe that 0 and make it a 1.

0 is invalid, always has been:

CSS specs (widows and orphans):

Quote:
Only positive integers are allowed as values of orphans and widows. Negative values and zero are invalid and must cause the declaration to be ignored.
Quote:
Originally Posted by odamizu View Post
What I meant was, I use them for my own purposes, but it always throws a validation error, which I ignore.
What throws a validation error?

epubcheck? Calibre's check? Or something else?

Quote:
Originally Posted by odamizu View Post
Then the "invalid" css succeeds in making my ereaders do what I want them to.
When CSS runs against a property it doesn't understand, it's designed to completely ignore that part. (For example, if a CSS2 reader runs across CSS3, it will also have no idea what those properties mean... but it will render the parts it does understand.) So proprietary entries like adobe-hyphenate shouldn't hurt one bit.

But, there are a few CSS implementation bugs to note:
  • RMSDK doesn't like actual invalid code. (Missing ; or missing a {}.)
    • It chucks away THE ENTIRE CSS file.
  • Other devices have issues with Media Queries.

Last edited by Tex2002ans; 10-13-2019 at 08:03 PM.
Tex2002ans is offline   Reply With Quote