Skip to content

Commit

Permalink
PIP-60: Including volume break enhancement (in CSS). Enabled: volume-…
Browse files Browse the repository at this point in the history
…break-inside: -obfl-keep(1)
  • Loading branch information
PaulRambags committed Mar 20, 2018
1 parent 281853f commit 64fbc1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/css/dedicon-default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
/* level1 {
-obfl-keep-with-previous-sheets: 2;
-obfl-keep-with-next-sheets: 2;
}
} */
p {
volume-break-inside: -obfl-keep(1);
} */
}

/* --------------------------------------------------------------------------------
* Page layout
Expand Down
6 changes: 4 additions & 2 deletions src/test/resources/pef/volumes-test-1.pef
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>application/x-pef+xml</dc:format>
<dc:identifier>identifier?</dc:identifier>
<dc:date>2017-09-25</dc:date>
<dc:date>2018-03-20</dc:date>
<dc:title>Maximum number of sheets 1</dc:title>
<dc:language>nl</dc:language>
</meta>
Expand Down Expand Up @@ -38,7 +38,6 @@
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
</page>
</section>
</volume>
Expand All @@ -65,6 +64,9 @@
<row>⠃⠇⠁⠃⠇⠁</row>
<row>⠃⠇⠁⠃⠇⠁</row>
</page>
<page>
<row>⠃⠇⠁⠃⠇⠁</row>
</page>
</section>
</volume>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/test/xprocspec/test_css_translator.xprocspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<x:expect label="result" type="compare" normalize-space="false">
<x:document type="inline">
<_ style="text-transform: none"><div xmlns="http://www.w3.org/1999/xhtml" style="{ display: block } @volume { @begin { counter-set: my-page; content: flow(title-page) flow(volume-toc); text-transform: auto } @end { counter-set: my-page; text-transform: auto } }">
<p style="display: block">⠨⠝⠕⠞ ⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
<p xml:space="preserve" style="display: block; white-space: pre-wrap">⠨⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
<p style="display: block; volume-break-inside: -obfl-keep(1)">⠨⠝⠕⠞ ⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
<p xml:space="preserve" style="display: block; volume-break-inside: -obfl-keep(1); white-space: pre-wrap">⠨⠏⠗⠑⠎⠑⠗⠧⠊⠝⠛ ⠺⠓⠊⠞⠑⠎⠏⠁⠉⠑</p>
</div></_>
</x:document>
</x:expect>
Expand Down

0 comments on commit 64fbc1a

Please sign in to comment.