New issue
Advanced search Search tips

Issue 788329 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Nov 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

colorDepth/pixelDepth should not include alpha channel in Android

Project Member Reported by fbeaufort@chromium.org, Nov 24 2017

Issue description

Chrome Canary 64.0.3274.0
Android 8.1.0; Pixel Build/Opp5.170921.005

What steps will reproduce the problem?
1. Open DevTools and check `screen.colorDepth` value

What is the expected result?
It should be 24 

What happens instead of that?
It is 32

According to the spec https://drafts.csswg.org/cssom-view/#screen, 

    The colorDepth and pixelDepth attributes should return the number of bits 
    allocated to colors for a pixel in the output device, excluding the alpha 
    channel.
 
 
Cc: -mlamouri@chromium.org
Owner: mlamouri@chromium.org
Status: Started (was: Unconfirmed)
Components: Internals>Core
Project Member

Comment 5 by bugdroid1@chromium.org, Nov 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/64f45fc4f73a556b64e8254ffa5b1dc040f5b3f8

commit 64f45fc4f73a556b64e8254ffa5b1dc040f5b3f8
Author: Mounir Lamouri <mlamouri@chromium.org>
Date: Tue Nov 28 17:04:47 2017

Do not use alpha channel for colorDepth/pixelDepth on Android.

Android is the only Chrome platform that takes into account the alpha
channel. This value is used for CSS Media Queries and Screen object on
the Web Platform.

Bug:  788329 
Change-Id: I9f3f20db1b00fcf8fbf2588f23785b695deb6546
Reviewed-on: https://chromium-review.googlesource.com/789333
Commit-Queue: Mounir Lamouri <mlamouri@chromium.org>
Reviewed-by: Bo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519710}
[modify] https://crrev.com/64f45fc4f73a556b64e8254ffa5b1dc040f5b3f8/ui/android/java/src/org/chromium/ui/display/PhysicalDisplayAndroid.java

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Verified at https://beaufortfrancois.github.io/sandbox/media-capabilities/screen.html in Chromium 64.0.3281.0.
Thanks!

Sign in to add a comment