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.
<rdar://problem/99871925>
*** Bug 254488 has been marked as a duplicate of this bug. ***
Pull request: https://github.com/WebKit/WebKit/pull/12062
Committed 262386@main (c073b6cbaccd): <https://commits.webkit.org/262386@main> Reviewed commits have been landed. Closing PR #12062 and removing active labels.