Re: [csswg-drafts] [mediaqueries] Non-positive value should be invalid for 'resolution' feature

> and that there's a UA-specific minimum value.

Depending on what you mean by that, do we even need that part? `(resolution: 0.000001dpi)` will never match any actual device, any more than `(resolution: 0dpi)`. On the other hand, every visual device will match both `(resolution > 0dpi)` and `(resolution > 0.00001dpi)`.

We should:
* forbid negative numbers
* define that `(resolution:0)` does not matches on non visual devices (to avoid the discontinuity between actual 0, rounded to 0, and very-small-but-not-rounded-to-0 numbers on non visual devices)
* (optionally) note that css-values allows for limited precision, and that rounding small numbers to 0 is ok.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1454#issuecomment-303657427 using your GitHub account

Received on Wednesday, 24 May 2017 08:39:09 UTC