Skip to content

Commit b718229

Browse files
committed
spec/page-view: [Proposal:]
1 parent 067020a commit b718229

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

spec/page-view.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ Any item with 'overflow:paged' is treated by @page and related as though it was
6060
If you want a different presentation on-screen than in print, you simply embed the @page rules inside @media rules.
6161

6262
If the 'size' property creates a page that is larger than the paged element, then traditional scrolling mechanisms can be used to reveal the extra content of that page. Otherwise, 'size' with absolute dimensions can give intrinsic width, height, and aspect ratio to the paged element.
63+
64+
If the author wishes an element on the page to have different @page rules than the page itself, or of an ancestor with @page, then named pages can be used.
65+
66+
67+
**Example:**
68+
@page { ... }
69+
@page myInner { ... }
70+
html { width: 100%; height: 100%; overflow: paged }
71+
innerDiv { width: 50em; height: 10em; overflow: paged; page: myInner; }
6372
===== Paged view with custom controls =====
6473

6574
**Goal:** Add custom controls to paged view.

0 commit comments

Comments
 (0)