RESOLVED FIXED 173872
Inner elements inside a button are clipped as if the button has overflow: hidden
https://bugs.webkit.org/show_bug.cgi?id=173872
Summary Inner elements inside a button are clipped as if the button has overflow: hidden
Roman Komarov
Reported 2017-06-27 05:41:33 PDT
Created attachment 313908 [details] Screenshot of the testcase showing the clipping See a testcase: https://codepen.io/kizu/pen/BZmmqL When we have a button element with something inside of it that goes beyond its dimensions, anything that goes beyond the button's box is clipped as if the button has `overflow: hidden`, while it is not (manually setting `overflow: visible` won't fix it either). This can be fixed by adding the `position: relative` to the inner element, but in other browsers including Chrome everything works as intended, without that clipping. Screenshot of the testcase attached.
Attachments
Screenshot of the testcase showing the clipping (164.33 KB, image/png)
2017-06-27 05:41 PDT, Roman Komarov
no flags
Simon Fraser (smfr)
Comment 1 2021-05-05 16:30:30 PDT
We seem to set up a clip when painting the button.
Radar WebKit Bug Importer
Comment 2 2021-05-05 16:30:39 PDT
Karl Dubost
Comment 3 2022-06-27 23:44:53 PDT
This is happening also on http://nydailynews.com (see the feedback button) This creates a webcompat issue with Firefox and Chrome. Both let the image overflow. Similar test case with an image. ``` data:text/html,<button style="width:20px;"><img style="background-color:red;width=50px;height:50px;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"></button> ```
Ahmad Saleem
Comment 6 2022-12-05 04:29:08 PST
EWS
Comment 7 2022-12-06 15:58:34 PST
Committed 257439@main (7db4da203517): <https://commits.webkit.org/257439@main> Reviewed commits have been landed. Closing PR #7062 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.