An image can overflow
master.dev
master.dev
Yes, you can clip an image, but you can also scale an image, making it half the size of the original. The fun-part is that Netscape Navigator would render all the even lines, and Internet Explorer rendered the uneven lines (or the other way around). Making the picture vendor-specific :-) Since almost all the current browsers use the same render-engine (and if not probably the library) you can make you image bigger and hide some watermark in the non-rendered pixels.
Probably not because current browsers probably resize the image using an interpolation algorithm that considers all pixels instead of just throwing away half the data.
Is something supposed to happen when I hover my mouse over the image? Because nothing happens. I'm using Firefox.
(I'm also using FF, and it works for me.)
From Firefox 148 release notes for developers:[1]
> The overflow, overflow-x, and overflow-y CSS properties can now be used on replaced elements such as images, in the same way that they are used with other elements. Prior to this, replaced elements were always clipped to their bounding container. (Firefox bug 1999100).
[0]: https://news.ycombinator.com/item?id=49272986 [1]: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Rel...