Get to know MDN better
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The CaptureController interface's decreaseZoomLevel() method decreases the captured display surface's zoom level by one increment.
The decreaseZoomLevel() method must be invoked via transient activation. In addition, the user is asked for permission to share tabs when screen capture is first attempted; if the user denies permission the zoom level cannot be changed even with transient activation.
None.
A Promise that fulfills with undefined.
Thrown when:
Thrown when:
The following snippet adds an event listener to a button so that when it is clicked, the decreaseZoom() function is called. This in turn calls the decreaseZoomLevel() method, zooming the captured surface out.
It is generally a best practice to call decreaseZoomLevel() from within a try...catch block because the zoom level could be changed asynchronously by an entity other than the application, which might lead to an error being thrown. For example, the user might directly interact with the captured surface to zoom in or out.
See Using the Captured Surface Control API for a full working example.
| Captured Surface Control # dom-capturecontroller-decreasezoomlevel |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 14, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.