I am facing an issue with resizing elements within a list. The requirement is that when the elements are resized, they should overflow the container only in the x direction. There must not be any scrolling in the x direction, but scrolling should be allowed in the y direction.
I have attempted to use the following CSS:
overflow-x: visible;
overflow-y: scroll;
However, this results in scrolling being enabled in both directions.
Is there a way to prevent this behavior?
Check out this example on JSFiddle for reference.
The answers provided in the response to CSS overflow-x: visible; and overflow-y: hidden; causing scrollbar issue explain the root cause of the problem but do not offer a solution in case of using scroll
.
While this behavior aligns with the spec, I am searching for workarounds to address this specific scenario.