CSS-based PDF: Question about Avoid rules

Post here questions and problems related to editing and publishing DITA content.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

CSS-based PDF: Question about Avoid rules

Post by mdslup »

I have a rule to avoid breaking in the middle of a step, like this:

*[class ~= "task/step"] {
page-break-inside: avoid;
}

My question is: When I am using a 2-column layout, does that rule also tell it to avoid breaking across the column, or does it apply only to breaking across a page? All my testing indicates that the rule also applies to column breaks. If this is the case, is there a way to specify that it's OK to break across a column, but not OK to break across a page?
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: CSS-based PDF: Question about Avoid rules

Post by Dan »

Hello,

Indeed, the property controls the break on columns and pages at the same time, and there is no workaround for this.
We will take a look to see if this can be implemented to ignore by default the column breaks.

Thank you,
Dan
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Re: CSS-based PDF: Question about Avoid rules

Post by mdslup »

Thanks.

I would like to be able to control them separately - a column break is not as bad as a page break.

Thanks very much!
Post Reply