View Single Post
Old 06-18-2020, 06:41 PM   #12
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,109
Karma: 92190133
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by scruffs View Post
So Ive attached the CSS as well. If you wouldn't mind taking a squint at it, I'd be very grateful.
I tried your "temp-css 2" style sheet with your previously posted "Test 01" EPUB file and was able to duplicate the ignoring of "page-break-after: avoid" using the Kindle Previewer.

With a bit of trial and error I was able to fix the problem by eliminating the property "background-color: #FFF" from the style sheet.

Looking at the proprietary Amazon ION code produced by the Kindle Previewer I was able to determine that the presence of this property causes the Kindle Previewer to insert a new block level element at the highest level of the document. That prevents the page-break handling from being effective since the KFX renderer only honors it when it is used in conjunction with a top level element.

The Enhanced Typesetting (KFX) conversion process definitely has some quirks!
jhowell is online now   Reply With Quote