Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Add support for spread=auto #14

Closed
frivoal opened this issue Dec 2, 2015 · 2 comments
Closed

Add support for spread=auto #14

frivoal opened this issue Dec 2, 2015 · 2 comments

Comments

@frivoal
Copy link
Member

frivoal commented Dec 2, 2015

When the page size is fixed, spread=auto should be able to detect if there's room for 2 pages or not.

If the page size is auto, spread=auto should go in spread mode if the browser window is wider than it is tall, unless the documents's stylesheet has @page {size: landscape} (possibly with a size as well).

Should writing modes make a difference?

@kwkbtr
Copy link
Contributor

kwkbtr commented Dec 2, 2015

I don't think writing modes make any difference.
Most Japanese books have landscape portrait pages regardless of their writing modes.
Furthermore, books having spreads with upper and lower pages (i.e. top-to-bottom page progression) are not typical.
(Current CSS Paged Media only defines ltr and rtl page progression)

@kwkbtr
Copy link
Contributor

kwkbtr commented Oct 25, 2016

A very simple implementation, which does not see the actual page size, was added by vivliostyle/vivliostyle.js#300 and #41.
More advanced implementation using the actual page size is yet to come.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants