RESOLVED FIXED 244845
[iOS] screen.colorDepth reports incorrect value
https://bugs.webkit.org/show_bug.cgi?id=244845
Summary [iOS] screen.colorDepth reports incorrect value
Ali Juma
Reported 2022-09-06 07:59:59 PDT
On iOS, screen.colorDepth is hard-coded to return 32 (see https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/ios/PlatformScreenIOS.mm#L52). However, according to the spec (https://drafts.csswg.org/cssom-view/#dom-screen-colordepth), the return value is meant to be the number of bits allocated to colors, excluding the alpha channel, so 32 seems generally incorrect.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-09-13 08:00:19 PDT
Alexey Proskuryakov
Comment 2 2023-03-27 15:13:54 PDT
*** Bug 254488 has been marked as a duplicate of this bug. ***
Anne van Kesteren
Comment 3 2023-03-28 10:44:01 PDT
EWS
Comment 4 2023-03-30 22:41:46 PDT
Committed 262386@main (c073b6cbaccd): <https://commits.webkit.org/262386@main> Reviewed commits have been landed. Closing PR #12062 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.