NEW 257325
Object with overflow hidden with canvases inside placed in flex container doesn't have right height
https://bugs.webkit.org/show_bug.cgi?id=257325
Summary Object with overflow hidden with canvases inside placed in flex container doe...
pawel.kaptur
Reported 2023-05-25 06:14:41 PDT
Created attachment 466496 [details] video showing that element has no height when container has inline-flex Description: Problem is little bit complicated. Our custom element is container for image. This custom element has overflow hidden. We have two canvases inside. One is for maintaining width of element and second contain image (it has position absolute). And size of canvas with image is transferred from custom element as width and height 100%. And everything works ok expect when we want to place this custom element in container with display flex or inline-flex. In those cases element has height 0. On the attachment added it can be seen and when we change container display option to block and go back to flex/inline-flex then it is working as expected. So it seems as a problem in calculating height on initialization. Same example works on Chrome 113.0.5672.126 and Firefox 113.0.2. What steps will reproduce the problem? (1) Please go to https://codesandbox.io/s/winter-http-3pp5kg (2) There is no image What is the expected result? Image container has height of canvas. What happens instead? Image container has height of 0.
Attachments
video showing that element has no height when container has inline-flex (22.58 MB, video/quicktime)
2023-05-25 06:14 PDT, pawel.kaptur
no flags
Radar WebKit Bug Importer
Comment 1 2023-05-26 02:14:04 PDT
Note You need to log in before you can comment on or make changes to this bug.