Skip to content

v1.38.0

Latest

Choose a tag to compare

@gildas-lormeau gildas-lormeau released this 17 Nov 12:51

Changes

  • The unused CSS rules of the stylesheets found in shadow roots are now removed when the option "Stylesheets > remove unused styles" is enabled, they were always saved whole. A stylesheet shared by several components is pruned for each component (i.e. for the shadow roots whose hosts have the same tag name). On a Reddit thread with 240 comments, the saved page goes from 394 MB to 21 MB (#1514)
  • The deferred content is also loaded on a page that keeps the document at the size of the window and scrolls an inner element; such a page was saved with its first rows only
  • An SVG file referenced by a use element is inlined in the page: a reference to a whole file (<use href="icon.svg">) was written as a data URI that no browser draws, and a referenced fragment that is not a symbol was drawn a second time at its own position
  • In the annotation editor, a click on a link to an anchor of the page (<a href="#...">) scrolls to its target when no edit tool is active, the click was ignored (#2059)

Fixes

  • A stylesheet containing :is() or :where() with an empty argument list no longer makes the save fail with "Cannot read properties of null (reading 'data')"; it was reported on github.com pages with Chrome 109 (#2058)
  • Saving a selection no longer gives a blank page when the selected content is displayed through the slots of web components: the shadow roots of the ancestors of the selection were emptied, slots included, and the shadow root of a selected component lost its content (#2060)
  • Updated single-file-core to 1.14.1