Commit 1b13abe8 authored by svilayphiou's avatar svilayphiou

region-break adapted for polyfill

parent d80025ee
...@@ -109,6 +109,8 @@ ...@@ -109,6 +109,8 @@
width: @page-width; width: @page-width;
height: @page-height; height: @page-height;
position: relative; position: relative;
box-sizing: border-box;
overflow: hidden;
} }
// TODO: changer le format du papier en spread pour pouvoir imprimer en planche // TODO: changer le format du papier en spread pour pouvoir imprimer en planche
...@@ -156,4 +158,5 @@ ...@@ -156,4 +158,5 @@
* if you want to put manual page breaks without attaching it to an HTML element * if you want to put manual page breaks without attaching it to an HTML element
*/ */
-webkit-region-break-before: always; -webkit-region-break-before: always;
break-before: always;
} }
...@@ -84,7 +84,9 @@ h6 { ...@@ -84,7 +84,9 @@ h6 {
* But it doesn't seem to work * But it doesn't seem to work
* if the element after has a page-break-inside avoid. It tries its best! */ * if the element after has a page-break-inside avoid. It tries its best! */
-webkit-region-break-inside: avoid; -webkit-region-break-inside: avoid;
break-inside: avoid;
-webkit-region-break-after: avoid; -webkit-region-break-after: avoid;
break-after: avoid;
} }
/* AN EXAMPLE TO AVOID PAGE BREAK INSIDE, /* AN EXAMPLE TO AVOID PAGE BREAK INSIDE,
...@@ -92,6 +94,7 @@ h6 { ...@@ -92,6 +94,7 @@ h6 {
* BUT YOU MIGHT WANT TO DEACTIVATE THIS */ * BUT YOU MIGHT WANT TO DEACTIVATE THIS */
p { p {
/*-webkit-region-break-inside: avoid;*/ /*-webkit-region-break-inside: avoid;*/
/* break-inside: avoid;*/
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment