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

Banning negative numbers at parse time makes sense to me. Excluding 0 seems more problematic, as I think we're trying to avoid open ranges in CSS. In your sample above, it you put `@media (resolution: 0.0000000000000000000000000000000000000000000001dpi)` firefox will output `not all` while Chrome outputs `(min-resolution: 1e-46dpi)`.

If Firefox had rounded to 0 when it reached its maximum precision instead of failing, the two queries would have been effectively equivalent (since they're a min- query).


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

Received on Tuesday, 23 May 2017 05:57:14 UTC