Install

Works with Drupal: ^10.2 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 14.74 KB
MD5: cdde3bda1dcd8d7a32b764ecc8699797
SHA-1: 137685aeafa7da1ad8a08778d3b6ea6b3465b2c9
SHA-256: ea5e858d3ac784520b530487da417f04287c55d9183216464585fbb4ed867c15
Download zip 19.61 KB
MD5: 2bfdefcca77b71a9a51a502798038c18
SHA-1: 55d31492622f64cfc0c3b2760c2527f70f00b4a5
SHA-256: 6616f72887fcf3a42a39b4e832932ab4d68463c9ce05df1bb6a20396ed3cd3e5

Release notes

Container Query Images 2.0.0
Breaking change

Version 2.0.0 changes how container-query images are selected in the browser.

1.x copied one srcset onto the Only local images are allowed. and let JavaScript pick the URL.
2.x keeps the native
/ structure. PHP starts with every disabled (media="not all"). JavaScript only enables the matching container-width group and leaves format selection to the browser.
Sites on 1.x are not upgraded automatically if they require ^1.0.

Benefits

Native browser behaviour — the browser chooses the image URL and density from srcset / sizes on each , instead of custom JS rewriting the Only local images are allowed..
Multiple image formats — several entries for the same width (e.g. AVIF, WebP, JPEG/PNG) stay intact, so the browser can pick the best supported format.
Better network & EcoIndex impact — only the matching width group is active; format negotiation stays native, which helps avoid oversized or wrong-format downloads and reduces wasted bytes.
Browser support — Chrome 105+, Safari 16+, Firefox 110+. Older browsers fall back to ResizeObserver (or window resize).
Other changes

Responsive image style forms hide the viewport sizes mapping for container breakpoint groups (one image style per breakpoint multiplier).
Drupal core compatibility: ^10.2 || ^11 || ^12.

release-2.0

Created by: rouaïda roumieh
Created on: 10 Nov 2026 at 08:14 UTC
Last updated: 10 Nov 2026 at 08:41 UTC
Bug fixes

Other releases