> On 15 Mar 2023, at 21:05, Bruce Van Allen <[email protected]> wrote:
> 
> I haven’t used Quark for at least a decade, so I haven’t faced this question 
> in that context. But with css in general:
> 
> 1. Your css is using the deprecated page-break-inside property. It might 
> still work, so try 'page-break-before: initial;' in the first paragraph of a 
> chapter.
> 
> 2. Otherwise the newer property is simply break-before (along with 
> break-after, and break-inside);
> 
> break-before: page;
> break-before: initial;
> 
> See mdn: <https://developer.mozilla.org/en-US/docs/Web/CSS/break-before>


Although break-before is part of the current CSS spec, the EPUB 3.3 spec (which 
I think is the latest) refers to page-break-before only. I can’t see an 
indication in the W3C spec that break-before is supported: 
https://www.w3.org/TR/epub-33 <https://www.w3.org/TR/epub-33>

Having said that, the draft points at https://www.w3.org/TR/CSS 
<https://www.w3.org/TR/CSS> which does have break-before, so you could equally 
assume that 3.3 does support it.

Of course, some EPUB platforms only support EPUB 2, which wouldn’t definitely 
not use break-before.

I guess the right approach is to test your target platforms.

Yours
David Donachie


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/01000186e7295ad4-ae256b87-3e31-412c-ae8c-9fccb4657674-000000%40email.amazonses.com.

Reply via email to