github zumerlab/snapdom v3.8.0

22 minutes ago

What's Changed

Fixes

  • styleScan: drop regex lookbehind that broke the import on iOS 16.0 to 16.3 #567
  • svg: keep the page's line breaks under the layout zoom 1bcf9c4
  • styles: stop three wrong identity shares bb527ad
  • prepare: clone an outlined root as it is 19fa097
  • decoded images keep their type, the differential frame sees sub-pixel drift a5e2819
  • background: never cache a failed fetch 22f4bb9
  • diff: refresh the flex floors of a row whose overflow changed 56b65f5
  • styles: keep the flex floor out of the cached snapshot 125ee3d
  • capture: measure under forced content-visibility a500f02
  • list all contributors, skip bots and AI accounts, round avatars b549ccd
  • pseudo: paint a pseudo declared through :scope, in a cross-origin sheet or past the preflight budget c3b7453
  • repaint form state written by script on captures outside burst 5bf345a
  • prepare: keep the top margin of a <pre> inside the capture 27c8217
  • part rules follow the style epoch, the first capture outside burst reads control state again 6faf1ca
  • styles: let a wrapper keep an auto height under zoom and around a display: contents child 103a67f
  • prepare: put kept <style> sheets below the generated classes 3272989
  • diff: compare the margins a snapshot froze, zero included ab341a3
  • styles: keep zoom set by a class on a descendant e3e4977
  • compress: keep a content:url() replacement and a file smaller than its redrawn copy 4e425c1
  • styles: siblings under a sibling-index() rule keep their own computed style fe61409
  • svg: lay the capture out under the element's zoom, and Firefox at 1x on an integer grid 1fe25e0
  • diff: drop a stale one-line pin before a retained clone is read again e0eb467
  • diff: compare the size a snapshot froze when the key holds no width af70936
  • clone: size canvas, video and object replacements as border-box 792610b
  • clone: size a captured iframe's wrapper from its computed size ffe7169
  • fonts: keep size-adjust and the metric overrides, a g or y icon font RegExp answers the same twice 2d110dc
  • svg: measure the room around a captured body in its own pixels 9fe38d9
  • styles: read a grid's tracks before its inline auto margins in Firefox 792074c
  • clone: compress a bordered canvas to its content box b7f9771
  • prepare: capture the whole page when the root is the scrolled document element 650de08
  • bench: the real-page bench runs by itself and prints a plain list d59ad8e
  • svg: find the line breaks automatic hyphenation makes inside words dfe5cc8
  • styles: count half of each border for a cell of a collapsed table f3c7f3b
  • svg: lay the capture out on the device grid when the browser is zoomed out 4cfccff
  • prepare: paint a fixed bar where it shows when <body> is the root of a scrolled page 870dbff
  • scripts: cross-report reads its columns from the header, parity notes a short comparison ca27d96
  • keep the script bundle parseable in a page that is not UTF-8 f45daf2
  • styles: read a grid's tracks before anything else of the node in Firefox c009c53
  • styles: tolerate a computed style without display in the Firefox grid read 0e3d78a
  • jpeg: flatten an oversized JPEG over black under a transparent background d99f622
  • fonts: quote the family of a face kept for a far weight 218a7cc
  • snapFetch: resolve with a failure when the proxied URL cannot be encoded 381fd07
  • bench: give every gallery mount photos of its own 96d5326
  • diff: treat a falsy frame url as a miss again 31aff8c
  • scripts: parity waits for the canvas d50 draws of itself d024f40
  • bench: stop the site the real-page bench started, so it exits dde4978

Performance

  • svg: pin only the lines a zoom can move a word across 849a2a5
  • compress: draw an image the page has decoded instead of reading it again 0ef2313
  • changes: stop taking snapdom's own transient edits for page changes 12d973d
  • styles: drop the style signature and its key cache 77172bd
  • styles: share reads between shadow roots that hold the same CSS 337da3d
  • diff: keep the class numbering on a frame that brings no new key a86b5fd
  • styles: build the style key with one lookup per property and no sort 0711b4e
  • styles: let a twin inherit the shared snapshot instead of copying it 66c4799
  • svg: skip the line break pass on a whole zoom and on one-line cells cb1e3e8
  • burst: skip the scroll probe on boxes without a scrollport 75a1dfb
  • styles: re-read shadow margins only when the root's CSS makes them box-relative 1d8d7a8
  • compress: keep a drawn image's original as a Blob until an export needs it 314622a
  • styles: pass the flex floor to getStyleKey instead of copying the snapshot e14661f

Refactoring

  • styles: split the scan readers, the share and the freezes out 76320c1
  • changes: move the invalidation wiring out of styles.js 1ca4fea
  • exporters: split the svg text edits and the Safari shadow rewrite out of toCanvas d03cbe6
  • fonts: one font file resolver and the sheet walk as a closure 6d5c1a8
  • clone: inline single-caller helpers and drop unreachable guards 27ed082
  • pseudo: the scan's gates replace the preflight, one counter context serves both branches 8c69d07
  • fonts: move iconToImage to iconFonts.js e654072
  • changes: order every change on one sequence b9b7a3b
  • compress: write compress outputs to the session, not the context 8834961
  • session: build every clone pass through createClonePass 77aed21
  • exporters: take an explicit ExportEnv instead of context fields d681d4f
  • session: rename the lazy clone-pass memos to their slot names adc7b14
  • session: pass the session as an argument on the full path 2ef4684
  • fonts: drop unused wrappers and one resolver per relative url 0b7dfb1
  • session: write render outputs to the session, not the context 83fec96
  • diff: give a differential frame its own session 19b56bd
  • burst: hand the watcher and retain to the session it creates 6be37e4
  • session: carry the style-share verdict on the session dfb44fc
  • pseudo: delete the session preflight memo that never hit 294fd20
  • drop an unused bound, a wrapper and an unread token, correct three comments c326f71
  • burst: type the retained capture and name its backdrop memo 5c2ece2
  • session: write warnings through the clone pass and the session 1135c87
  • fonts: drop the italic check tier 2 already implies b067f67
  • session: carry the animated properties on the session f8b4559
  • session: carry the slicer on the session, not the context d16c797
  • session: carry resolveNode hooks on the session, not the context 2e45201
  • session: carry the Safari font usage on the session e99f2a7
  • capture: keep the zeroed margin list in a local 85ab8f8

Full Changelog: v3.7.6...v3.8.0

Don't miss a new snapdom release

NewReleases is sending notifications on new releases.