Bug 244845
| Summary: | [iOS] screen.colorDepth reports incorrect value | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ali Juma <ajuma> |
| Component: | Media | Assignee: | Anne van Kesteren <annevk> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | annevk, dino, greg323464, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ali Juma
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/99871925>
Alexey Proskuryakov
*** Bug 254488 has been marked as a duplicate of this bug. ***
Anne van Kesteren
Pull request: https://github.com/WebKit/WebKit/pull/12062
EWS
Committed 262386@main (c073b6cbaccd): <https://commits.webkit.org/262386@main>
Reviewed commits have been landed. Closing PR #12062 and removing active labels.