You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/page-view.txt
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -127,9 +127,7 @@ To achieve that, pages and paged viewer need exposure in styles and OM
127
127
</code>
128
128
====Ideas====
129
129
===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//
133
131
134
132
* interface **PagedView** -- implemented on HTMLElement (and maybe on HTMLDocument). Alternatively all members are exposed directly on element (that would match scope of scroll API)
135
133
* 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
140
138
* Rect[] PagedView.**rectsOnPage**(pageNumber, Node contentnode) -- get bounding rects of content rendering on specific page
141
139
* Range[] PagedView.**getContentRangesOnPage**(pageNumber) -- range(s) of content that falls on that page
142
140
* 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
+
146
143
===== Page view with custom pages =====
147
144
148
145
**Goal:** Apply content formatting to specific pages and position pages on screen
0 commit comments