How to overflow-x: visible while overflow-y: scroll
问题 MDN, while talking about overflow, states: MDN Note: Setting one axis to visible (the default) while setting the other to a different value results in visible behaving as auto. So in the following context... overflow-y: scroll/auto overflow-x: visible ... overflow-x: visible behaves as overflow-x: auto , which in turn seems to behave as overflow-x: hidden . Notice in the demo below that half of the orange square is hidden on the Z plane. ::-webkit-scrollbar { display: none; } #grid { width: