3 ms·
What is written in CSS specification may work only if CSS has any means to measure distance of observer from display surface. Like @media distance(1m) {} Othe
by c-smile 9y ago
What is written in CSS specification may work only if CSS has any means to measure distance of observer from display surface.
Like @media distance(1m) {}
Otherwise it is just a good wish like "hope you have normal eyesight".
The only information that is available to CSS is that it gets rendered on some media. And so 100mm shall be 100mm measured by the ruler on that media surface. Monitor or printer. Dot. No other options.
- kijin 9y agoPhones already have proximity sensors and facial recognition. We're just not using them to scale pixels yet. But for most intents and purposes, it's enough to assume a "typical" distance for the type of device in question. People with bad eyesight are free to place the device closer to their eyes, zoom in, or adjust a system setting that makes everything look larger.
- zAy0LfpBZLC8mAC 9y ago> And so 100mm shall be 100mm measured by the ruler on that media surface. Monitor or printer. Dot. No other options. So, you connect a projector to your laptop, point it at a 20 m screen, open a web page, and then ... the browser has to scale the web page to a width of 10 pixels without any options to adjust things for the user?
- gweinberg 9y agoThe projector is a great example. The projector generally will know neither how far the projector itself is from the screen nor how far the viewers will be. So specifying how large the type should be on the screen in inches is obviously not a useful thing to do.
- mjevans 9y agoGenerally 'as large as possible' is the best answer for this case...