The monochrome media feature should accept non-negative integers as specified in the Media Queries spec. For instance: /* Match non-monochrome displays. */ @media (monochrome: 0) {} /* Match monochrome displays with 8 bits per pixel. */ @media all and (monochrome: 8) {}
Created attachment 193526 [details] Patch
I think patch landed since I can see the line of code in Webkit Github mirror as below: https://github.com/WebKit/WebKit/blob/main/Source/WebCore/css/MediaQueryExpression.cpp#L135 Unless, if test cases needs to be merged or something else is required here. I think this can be closed. Thanks!
Looks like this got added in 2016 with bug 161537.