Bug 210371 - Images with style="display: none; image-orientation: none;" do not report the correct size
Summary: Images with style="display: none; image-orientation: none;" do not report the...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-10 20:41 PDT by Said Abou-Hallawa
Modified: 2023-07-23 04:02 PDT (History)
3 users (show)

See Also:


Attachments
test case (1.50 KB, text/html)
2020-04-10 20:41 PDT, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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!