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: Fri, 26 May 2017 06:01:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-304199419-1495778505-sysbot+gh@w3.org>
> A resolution of 0dpi is meaningless; it corresponds to an infinite dot size, which isn't physically possible.

Neither is a device with pixels that are 375 miles across. 

I don't see the practical benefit / difference. No device will have infinitely large pixels. No device will have 375 miles large pixels either. So none of `resolution:0`, `resolution: something-tiny`, `max-resolution:0`, or `max-resolution: something-tiny` will ever match anything. However, both `min-resolution: 0` and `min-resolution: something-tiny` will match the same things (all the visual devices, for which a concept of resolution is meaningful).

So if the practical results are the same, why introduce extra logic in processing, when old fashioned rounding will do just fine?

GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1454#issuecomment-304199419 using your GitHub account
Received on Friday, 26 May 2017 06:01:53 UTC

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