I am having an issue while developing a web page.
Neither Firefox or Internet Explorer will present the behavior that I expect for the following code snippet:
<div
style="overflow-x: visible; overflow-y: auto; width: 200px; height: 200px; border: 1px solid #F00;">
<div style="width: 300px; height: 300px; background-color: #0F0;"> </div>
</div>
What I would expect would be to be able to see the content that overflows on the x side of the container div, but not the content that overflows on the bottom (with a scrollbar to see more). Instead, what I see is an x scrollbar and a y scrollbar.
Note: an inspection of the computed style properties in firebug reveals that firefox is using overflow-x: auto;
for the container.
Is this behavior expected? I understand that there is some ambiguity about requesting to put a scrollbar on top of my own content (e.g. that my horizontal content would go past the vertical scroll bar, so that would have to cover some of the content).
So is the behavior that I am experiencing standards compliant?