W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

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

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 May 2017 05:57:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-303298006-1495519025-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC