This is not a solution, but a workaround that should help:
Since you cannot show part of the image dynamically when cols and rows change one at a time, try using only one column or a series of parts of the image.
When only one line of sub-images is used, you should be able to set the viewed part using background-position: X 0; , and X is your image offset. You will need to edit the image file that you display in order to achieve this.
So, change the location of the subimages in the form of an image file:
☺☺☺☺ ☺☺☺☺ ☺☺☺☺
in
☺☺☺☺☺☺☺☺☺☺☺☺
As I said, this is not a solution to the problem itself, but rather a workaround, but it should work well on all browsers. However, Mozilla must implement the -x / -y attributes or fix the CSS variable problem in the animation. Until then, I do not see the right solution for this.
Karkan
source share