Skip to content

v2.27.1

Choose a tag to compare

@gildas-lormeau gildas-lormeau released this 18 Nov 11:04

SingleFile CLI 2.27.1

CLI fixes and improvements

  • --embed-screenshot and --embed-pdf embed the screenshot and the PDF again. Since 2.18.1, the file was saved without them, and without any warning, unless a settings file defined removeAlternativeImages (#212 by @johanjohan).
  • --remove-alternative-images given on the command line is no longer ignored when a settings file defines the same option.
  • With Chromium, --browser-width and --browser-height now set the size of the viewport, as they already did with Firefox. They used to set the size of the window, and the browser kept 87 px of its height for itself: a page was laid out in 1280x633 by default, it is now laid out in 1280x720. --browser-device-width and --browser-device-height still take precedence.
  • When the page crashes in Chromium during the capture (e.g. when it runs out of memory), the error is now "Page crashed" and it is reported at once. It used to be reported as a capture timeout, after the whole delay.
  • With Firefox, a page that navigates to another URL from a script before its load event is now captured. The capture failed with a navigation error.
  • A capture now checks that the browser it connects to is the one it launched. When several captures were started at the same time with Chromium, two of them could be given the same debugging port, and one of them failed.
  • Updated single-file-core to 1.14.3:
    • an imported stylesheet that is truncated or leaves a block, a string or a comment open no longer swallows the rules that follow it in the page
    • the adopted stylesheets of a shadow root are now saved after its own <style> elements, which is their place in the cascade

Co-authored by Claude (Claude Code)