Bug 210371

Summary: Images with style="display: none; image-orientation: none;" do not report the correct size
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=210364
Attachments:
Description Flags
test case none

Description Said Abou-Hallawa 2020-04-10 20:41:26 PDT
Created attachment 396146 [details]
test case

Open the attached test case.
This test case contains three images; all of them have "image-orientation: none;". The first image is visible, the second one has "visibility: hidden;" and the third one has "display: none;".

Expected: All the three images report the same size which is 100x50.
Result: The image with "display: none;" reports a wrong size 50x100.
Comment 1 Ahmad Saleem 2023-07-23 04:02:53 PDT
Chrome Canary 117:

id = visibile: computedStyleSize = (50px by 100px), size = (50 by 100)
id = visibility-hidden: computedStyleSize = (50px by 100px), size = (50 by 100)
id = display-none: computedStyleSize = (auto by auto), size = (50 by 100)

Firefox Nightly 117:

id = visibile: computedStyleSize = (50px by 100px), size = (50 by 100)
id = visibility-hidden: computedStyleSize = (50px by 100px), size = (50 by 100)
id = display-none: computedStyleSize = (auto by auto), size = (50 by 100)

WebKit ToT:

id = visibile: computedStyleSize = (50px by 100px), size = (50 by 100)
id = visibility-hidden: computedStyleSize = (50px by 100px), size = (50 by 100)
id = display-none: computedStyleSize = (auto by auto), size = (50 by 100)

_______

All browsers are matching each other. Do we need to do anything else? Thanks!