overflow-x: visible; doesn't work with overflow-y: auto; any workaround?

Toni Michel Caubet picture Toni Michel Caubet · Jun 5, 2012 · Viewed 23.6k times · Source

i am trying

.item {
   width: 100px;
   overflow-x: visible;
   overflow-y: auto;
}

But vertical overflow:auto seems to override horizontal's

fiddle: http://jsfiddle.net/xcUTV/

Is there any workaround for this? even with a bit of javascript

Answer

tibo picture tibo · Jun 6, 2012

You cannot, that is written in the spec.

Have a look here : https://stackoverflow.com/a/6433475/1343096

Since it is written in the spec, I am 99% sure that it is impossible to do.