I have some legacy code that I am working on that utilizes column-count: 2
with a break-inside
/ page-break-inside
of avoid
on the child elements.
This works as expected when there is more than 1 child, but when there is only one child, the element gets split into the two columns on Firefox. On chrome, the one element is contained to the first column as expected.
I made a codepen to demonstrate this issue: https://codepen.io/anon/pen/rrbEZY Compare the differences in Chrome vs Firefox to understand what I am talking about.
All the resources I can find about this, say that Firefox has supported page-break-inside
since Firefox 19.
Is there something else I am missing here to resolve this issue without completely rewriting my codebase?