### PHP Version 8.2 ### Shopware Version 5.7 ### Actual behaviour `Resources/frontend/js/webp-support.js` sets the css class `has--webp` if webp is supported. The swImageGallery override only loads webp if webp is not supported (negated behavior). `Resources/frontend/js/jquery.image-gallery.js`. ### Expected behaviour `Resources/frontend/js/jquery.image-gallery.js` The conditions ```javascript if (!document.documentElement.classList.contains('has--webp')) { ``` work as expected if they are not negated. ```javascript if (document.documentElement.classList.contains('has--webp')) { ``` ### Steps to Reproduce? it seems to be a general problem?
PHP Version
8.2
Shopware Version
5.7
Actual behaviour
Resources/frontend/js/webp-support.jssets the css class
has--webpif webp is supported.The swImageGallery override only loads webp if webp is not supported (negated behavior).
Resources/frontend/js/jquery.image-gallery.js.Expected behaviour
Resources/frontend/js/jquery.image-gallery.jsThe conditions
work as expected if they are not negated.
Steps to Reproduce?
it seems to be a general problem?