implement "page-break-inside: avoid" for non-floating block elements
This patch is taken from https://bugs.webkit.org/show_bug.cgi?id=5097#c17