-
Notifications
You must be signed in to change notification settings - Fork 756
Description
Context: this is related to the Screen interface, in particular the colorDepth and pixelDepth
Some bug history:
- https://www.w3.org/Bugs/Public/show_bug.cgi?id=17522
- https://www.w3.org/Bugs/Public/show_bug.cgi?id=14071
I am suggesting that we do the following changes:
colorDepthandpixelDepthcontinue to return the same value;colorDepthandpixelDepthshould return the number of bits allocated to colors on the output device or an approximation to the best of the UA's knowledge;- 24 is to be used as a default value for privacy considerations or when the UA can't find the value;
- the
colorMQ should return a consistent values withcolorDepthandpixelDepth(eg. 8 when the properties return 24 or 10 when 30 is returned by the properties)
We could also recommend 24 to be used if the value would be below 24. However, Blink already exposes monochrome in the color MQ so there might be benefit of keeping consistency between APIs in some cases where the value would be below 24.
The purpose for this change is for websites to be able to detect whether it is worth providing content that would require high color depth output.
The main concern would be fingerprinting. The treat seems fairly weak compared to the current fingerprinting surface on the Web. It will most likely add one or two bits of entropy (24/30/48) which can probably be linked to other properties of the display (CSS color gamut, screen size, etc), thus likely reducing the practical benefit for fingerprinting.