Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision |
spec:page-view [2012/02/19 20:30] – [Column breaks and page breaks in regions] bkemper | spec:page-view [2012/02/19 20:44] – [Printing generated pages] bkemper |
---|
Running script before print (to generate a new set of pages for print media) -- may need an event on HTMLDocument (and not sure it is a good idea). | Running script before print (to generate a new set of pages for print media) -- may need an event on HTMLDocument (and not sure it is a good idea). |
| |
| ===Proposal=== |
| * UA should treat any object with 'overflow:paged' in a way similar to iframes: providing UI to print just that one element, but defaulting to print it along with the entire root page. If printing just the overflow:paged element, its position within its parent or ancestors is ignored, and the upper left corner of the element will go in the upper left corner of the printable area of the paper. Right-clicking on an element should also present an option to print any of the ancestors that have 'overflow:paged' on them. |
| * the '.print()' function of 'window' should be extended to also be used on any element, so that document.getElementById("myPagedView").print() would work to print that one element. Then authors can include a button to print their paged element. |
====== Issues ====== | ====== Issues ====== |
* Paged view doesn't automatically mean "paged media" (which is commonly used as "for printing" and can't be repurposed). Should there be a way to declare that a paginating viewer (e.g. iframe) needs to render the same visuals as what would be printed? | * Paged view doesn't automatically mean "paged media" (which is commonly used as "for printing" and can't be repurposed). Should there be a way to declare that a paginating viewer (e.g. iframe) needs to render the same visuals as what would be printed? |
* Media queries for paged view/columns/regions? | * Media queries for paged view/columns/regions? |