Skip to content

Release notes Web Framework Experimental ​

For more information about experimental releases, see Experimental Releases.

5.0.0-experimental.2026111901 2026-11-19 ​

API Docs

NOTE

This version is based on the previously released 5.0.0-rc.7, plus some changes from the upcoming 5.0.0-rc.8. Those changes will be listed in the 5.0.0-rc.8 release notes. Only one of them, a breaking change, is listed here.

This experimental release should be used for evaluating the Visible Content API. The API is marked as experimental and might change in future releases.

Breaking changes ​

  • IEpubReaderPublicationCustomCssOptions.enableNormalizeCss now defaults to false, so the CSS reset normalize.css is no longer injected into EPUB content documents. Publications may render differently. To keep the previous rendering, set enableNormalizeCss to true. Note that enableNormalizeCss is deprecated.

New features ​

  • Added the Visible Content API. Call IReaderView.getVisibleContent() to get an IReaderViewVisibleContent snapshot of the content currently visible in the ReaderView.

  • Added the methods IReaderViewVisibleContent.getContentRectsContainedInArea() and getContentRectsIntersectingArea(). getContentRectsContainedInArea() returns the content rects fully inside a named area. getContentRectsIntersectingArea() returns the content rects that intersect it. VisibleContentAreaType names the areas: the Reading Area and the Content Display Area. The result groups the rects into continuous runs of content (ranges).

  • Added IVisibleContentAreaRectsResult.getContentLocationPaintState(), which tells whether a content location is painted in the area, not painted (for example display: none), or outside the visible content.

  • In EPUB content, the rects returned by getContentRectsContainedInArea() and getContentRectsIntersectingArea() include clipping information. Each rect has a clippedState and a clippedClientRect. Its clippingRectIndex refers to the clipping element in IVisibleContentAreaRectsResult.clippingRects.

  • Added the engine event visibleContentChange. It is fired each time IReaderView.getVisibleContent() starts returning a new snapshot. For example, this happens when navigation, scrolling, zooming or a change to the publication content starts or ends. IReaderViewVisibleContent.ongoingChanges lists the changes that are still ongoing.

  • IReaderView.focusOnReadingPosition() now focuses on the text nearest the reading position in PDF publications when IFocusOnReadingPositionOptions.focusTargetOptions.target is set to anything other than NONE.

Deprecations ​

  • IVisiblePage.fetchRectsForVisibleContent() has been deprecated. Please use the new method IVisiblePage.fetchContentRects() instead.

Improvements ​

  • Reduced the memory used by EpubCfiSelector instances. IEpubCfiSelector.getRootNode() may now return a copy of the root node passed to the EpubCfiSelector constructor instead of the original object.
  • Scrollable elements in scripted EPUB content documents now get tabindex="0", as in other content documents. Users can now scroll these elements with the keyboard. Swipe navigation now also works over these elements once they are scrolled to the end, and over scroll containers whose content does not overflow.

Bugfixes ​

  • Fixed an issue where IVisiblePage.fetchBoundingClientRectForContentLocation() returned rectangles for PDF pages relative to the page instead of in application viewport coordinates.

Known limitations ​

  • In SinglePageSwipeRenderer and SpreadSwipeRenderer, IReaderViewVisibleContent.getSpecifiedAreaRect() and getResolvedAreaRect() return the rect of the whole ReaderView, including the contentDisplayAreaOptions insets. In all paginated renderers, the rect grows when the ReaderView is zoomed, so getContentRectsContainedInArea() and getContentRectsIntersectingArea() can return content that is off screen.
  • After IReaderView.setReaderDocuments() clears or replaces the reader documents, IReaderView.getVisibleContent() keeps returning the snapshot of the previous documents. When the documents are replaced, the snapshot is updated after the first navigation in the new documents.
  • In paginated renderers, when a navigation fails, NAVIGATING can stay in IReaderViewVisibleContent.ongoingChanges and the snapshot is not updated until the next navigation.
  • In paginated renderers, a PDF page whose text fails to load blocks IReaderView.next(), IReaderView.previous() and swipe navigation until IReaderView.goTo() is called. This also affects applications that do not use the Visible Content API.
  • Do not set IEpubTextNodeSplitOptions.enableTextSplit to true. In Safari 26 and on iOS 26, long paragraphs are not shown when text split is enabled.

5.0.0-experimental.2026070901 2026-07-09 ​

API Docs

NOTE

This version is based on the previously released 5.0.0-rc.4.

New features ​

  • Added the new method IVisiblePage.fetchBoundingClientRectForContentLocation(). It returns a single DOMRect, in application viewport coordinates, that fully encapsulates a given content location including any surrounding container padding and borders (unlike fetchRectsForVisibleContent, which wraps only the leaf content).

5.0.0-experimental.2025091601 2025-09-23 ​

API Docs

NOTE

This version has all bugfixes from version 4.5.0, but also some additional changes and features from the upcoming 5.0.0.

This experimental release does not include all upcoming changes for 5.0.0, but should be used for evaluating the ContinuousScrollRenderer.

Breaking changes ​

  • The minimum supported browser versions have changed to: - Safari 15 - Firefox 128 - Chrome 64 - Edge 79
  • The distributed framework module files .mjs are now real ES modules instead of importing the CommonJS version of the module.
  • The distributed framework module files are now using ECMASCRIPT 2018 syntax.

New features ​

  • Added support for rendering the ReaderView in a Shadow DOM. Previously, our styles were not reaching the viewElement if it was inside a Shadow DOM, but that has now been fixed.
  • Added a new renderer option swipeNavigationGestureThreshold. This option can be used to configure the swipe distance required to perform a swipe navigation. Additionally, swipe animations have been refined to start more smoothly.

Bugfixes ​

  • Fixed an issue where certain elements were given tabindex="-1", preventing focus via standard keyboard navigation.
  • Fixed an issue where publication content that changed overflow-x styling could break reflow due to browsers implicitly setting overflow-y to auto.

Scroll renderer improvements since 4.4.0-experimental.2025062501 ​

  • Several bugs and issues have been fixed.
  • The duration of the smooth scrolling can now be controlled with the renderer options scrollAnimationDurationMs and scrollAnimationMaxDistance. Please refer to the API documentation for more information.

4.4.0-experimental.2025062501 2025-06-30 ​

API Docs

NOTE

This version is based on the previously released 4.4.0.

New features ​

  • Added the new renderer ContinuousScrollRenderer that shows all documents in a single vertical scrolling view.

Changes since 4.3.0-experimental.2025050801 ​

  • Added a new ReaderView.goTo() option to control how scroll renderers behave when the target position is already visible in the ReaderView.
  • Scroll renderers can now smoothly scroll to nearby positions.
  • Added a new event, rendererScrollChanged, which is fired continuously while scroll renderers are scrolling.
  • Changed the rendererScrollStarted event type to IRendererScrollEngineEvent. It is now possible to determine whether scrolling was initiated by the user by inspecting the userGenerated property.
  • Fixed several bugs and issues in the ContinuousScrollRenderer.

4.3.0-experimental.2025050801 2025-05-08 ​

API Docs

NOTE

This version is based on the previously released 4.3.0.

New features ​

  • Added the new renderer ContinuousScrollRenderer that shows all documents in a single vertical scrolling view.

4.2.1-experimental.2025041101 2025-04-11 ​

API Docs

NOTE

This version is based on the previously released 4.2.1.

New features ​

  • Added the new renderer ContinuousScrollRenderer that shows all documents in a single vertical scrolling view.

4.0.0-experimental.2024062701 2024-06-27 ​

API Docs

NOTE

This version is based on the previously released 4.0.0-rc.1.

New features ​

  • Introduced a new option IEpubContentBlockOptions.attributeNamesThatCreateContentBlocks. With this option, you can specify which element attribute names should trigger the creation of a ContentBlock for an element.