# What changed in modern-screenshot

> 4 changes in modern-screenshot 4 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/modern-screenshot/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## modern-screenshot 4

### New APIs and options

- Adds support for fonts in @layers. (4.6.8) — [release notes](https://github.com/qq15725/modern-screenshot/releases/tag/v4.6.8)

### Fixes and other changes

- Deletes position when copying root element styles. (4.7.0) — [release notes](https://github.com/qq15725/modern-screenshot/releases/tag/v4.7.0)
- Clones documentElement instead of body for same-origin iframes. (4.7.0) — [release notes](https://github.com/qq15725/modern-screenshot/releases/tag/v4.7.0)
- WebKit scrollbar pseudo-classes are now cloned correctly. (4.6.7) — [release notes](https://github.com/qq15725/modern-screenshot/releases/tag/v4.6.7)
