The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
Bug - buttons not handled as block elements for overflow: hidden
Buttons should behave as block elements (or inline-block) for purposes of honoring overflow: hidden style. Setting display: inline-block does not work either to force this functionality.Simplest case: <button><img src="something.png" /></button> where the img may be larger than the button. Common use is where mutliple button images are stored in a single file and position: relative is set for the img element and the position is then adjusted to display the desired section of the image.
Work around: <button><div><img src="something.png" /></div></button> where the div then performs the overflow: hidden clipping. Not clean and adds to the size and complexity of pages.
Please fix.