Can I turn off the scaling of Firefox images using CSS for each image?

There are two cases on my webpage where I do not want Firefox to automatically scale images when zooming in and out.

Can I bypass this function specifically on these images, and the rest of the images will be displayed as usual in Firefox (if this is what users set in their preferences)?

+3
source share
1 answer

It is not possible to mark or otherwise prevent image scaling when the user requests scaling.

window.onresize , , Firefox 3 ( ). , , , .

However, this is all a house of cards. The JavaScript-only solution does not determine the scale at the first page load, so to determine the amount of scaling, you will need the Flash component on the page. In addition, the actual zoom effect will distort the user. Resizing the image is slightly behind the user's zoom setting, which will lead to a page overflow, possibly moving content that they tried to increase in the first place.
+4
source

Source: https://habr.com/ru/post/1706032/


All Articles