Skip to content

Commit c157cbe

Browse files
committed
Avoid page breaks just after headings and inside function specifications.
1 parent 9b32b6a commit c157cbe

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

function.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<polymer-element name="cxx-function" constructor="CxxFunctionElement" noscript>
1717
<template>
1818
<style>
19-
:host { display: block; }
19+
:host { display: block; page-break-inside: avoid;}
2020
:host:not(:last-child) { margin-bottom: 3ex; }
2121
:host > dl { margin: 0; margin-left: 2em; }
2222
:host > pre { margin: 0; }

section.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
:host:target > section > h1 {background-color: #fed;}
2626
/* @polyfill header > h1 */
2727
::content h1 { display: inline; font-size: 100%; }
28-
header { font-weight: bold; margin-top: 20px; margin-bottom: 20px; }
28+
header { font-weight: bold; margin-top: 20px; margin-bottom: 20px;
29+
page-break-inside: avoid; page-break-after: avoid; }
2930
header::after { clear:both; display: block; content: " "; height: 0 }
3031
</style>
3132

0 commit comments

Comments
 (0)