Bug 112549 - monochrome media feature does not accept integer values
Summary: monochrome media feature does not accept integer values
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2013-03-18 03:07 PDT by Rune Lillesveen
Modified: 2022-06-09 11:34 PDT (History)
12 users (show)

See Also:

Patch (3.30 KB, patch)
2013-03-18 04:39 PDT, Rune Lillesveen
kenneth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rune Lillesveen 2013-03-18 03:07:17 PDT
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) {}
Comment 1 Rune Lillesveen 2013-03-18 04:39:12 PDT
Created attachment 193526 [details]
Comment 2 Ahmad Saleem 2022-06-09 09:30:13 PDT
I think patch landed since I can see the line of code in Webkit Github mirror as below:


Unless, if test cases needs to be merged or something else is required here. I think this can be closed. Thanks!
Comment 3 Alexey Proskuryakov 2022-06-09 11:34:38 PDT
Looks like this got added in 2016 with bug 161537.