Skip to content

Commit 2d4f6f7

Browse files
committed
spec/page-view: [Ideas]
1 parent 037ce4e commit 2d4f6f7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

spec/page-view.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ To achieve that, pages and paged viewer need exposure in styles and OM
127127
</code>
128128
====Ideas====
129129
===Paged View DOM===
130-
//There are no formal proposals on DOM for overflow:paged at this time. If it is added, it should be similar what regions expose for same purposes//
131-
132-
//The API should include the following members, or equivalent://
130+
//Some API as in [[http://dev.opera.com/articles/view/opera-reader-a-new-way-to-read-the-web/|Opera Reader]], other added as it seems needed for completness. Please correct if there are newer proposals//
133131

134132
* interface **PagedView** -- implemented on HTMLElement (and maybe on HTMLDocument). Alternatively all members are exposed directly on element (that would match scope of scroll API)
135133
* PagedView Element.**pagedView** -- paged view of element's content. NULL if not applicable
@@ -140,9 +138,8 @@ This should wait synchronously for content pagination to be completed, if needed
140138
* Rect[] PagedView.**rectsOnPage**(pageNumber, Node contentnode) -- get bounding rects of content rendering on specific page
141139
* Range[] PagedView.**getContentRangesOnPage**(pageNumber) -- range(s) of content that falls on that page
142140
* Node **elementFromPoint**(pageNumber, x, y) -- element under the point, in coordinates of the page
143-
144-
//**Events** -- does it needan event for layout change? Probably not: unlike regions, all content is inside the viewer element, content change events should be enough//
145-
141+
* event **onpagechange** -- fired when current page changes
142+
146143
===== Page view with custom pages =====
147144

148145
**Goal:** Apply content formatting to specific pages and position pages on screen

0 commit comments

Comments
 (0)