What I want to know is who decided to break px, the last thing we need is yet another screwball physical measurement, css was already full of them. But what "tut tut, everybody is using px and these new hi-dpi displays are rendering things really tiny, we can't have that" and now px as a useful unit is ruined. Is there a way to use real pixels? My, admittedly quick, search says no. at least nothing jumps out at me fr…
No one decided to break it, it was 1/96th of an inch from the beginning. The problem with different screens having different pixel densities was already present and obvious in 1996. "Real" pixels are useless if you don't know anything about the screen you're going to render on.
Death to px, long live ch
51–60 of 86 posts
Re: Death to px, long live ch
#52What happened to em?
For lengths that you specifically want to be axis-independent and related to the font size, e.g. border-radius, then you should still use ems.
Re: Death to px, long live ch
#53What I want to know is who decided to break px, the last thing we need is yet another screwball physical measurement, css was already full of them. But what "tut tut, everybody is using px and these new hi-dpi displays are rendering things really tiny, we can't have that" and now px as a useful unit is ruined. Is there a way to use real pixels? My, admittedly quick, search says no. at least nothing jumps out at me fr…
But even in CSS1 (1996), a "reference pixel" based on a typical 90 DPI monitor was recommended. You could argue its always been broken
Re: Death to px, long live ch
#54The article links to https://shkspr.mobi/blog/2018/11/the-myth-of-the-pixel-perfe... which confuses me, because I definitely remember pixels being visible when I was growing up. I remember the first time I got a 1080p monitor. I felt a visceral terror at the fact that I could no longer see the pixels.
And all the examples that are ultra zoomed and/or showing antialiased font rendering obscure the pixels that are more visible in other situations.
That 0.01 to 0.04 degree range later in the article is big enough to drive a truck though. And you can see stairstepping at even finer distances.
Re: Death to px, long live ch
#55Re: Death to px, long live ch
#56Re: Death to px, long live ch
#57The article links to https://shkspr.mobi/blog/2018/11/the-myth-of-the-pixel-perfe... which confuses me, because I definitely remember pixels being visible when I was growing up. I remember the first time I got a 1080p monitor. I felt a visceral terror at the fact that I could no longer see the pixels.
Was this on an LCD or CRT display? Because on a CRT, you can't really see the pixels [0] [1], so what you were seeing was probably the shadow mask instead [2]. You could definitely see the pixels on old LCD monitors though, and new LCD monitors too if you look really close, although even big LCD pixels aren't quite as prominent as the shadow mask is on a CRT.
[0]: https://en.wikipedia.org/wiki/Fixed-pixel_display
[1]: https://alvyray.com/Memos/CG/Microsoft/6_pixel.pdf#page=8
Re: Death to px, long live ch
#58I also did some experiment with ch many years ago. I found that 60ch is ideal width for block text for easy reading. too bad it is pretty hard to make websites with only 60ch wide.
Your content
What is hard about that?Re: Death to px, long live ch
#59Earlier quoted context omitted.
what the spec says doesn't really matter though, the spec is just nonsense people wrote down to try to back-explain decisions that the browsers had already made. pixels are pixels, and no browser implements them as a fractional-inch measurement. in every actual implementation i'm aware of, they're a hardware based unit.
They aren't hardware based. As I say in the first link, pixels mostly don't exist in hardware. Screens very rarely contain a matrix of individual squares. For example - https://global.samsungdisplay.com/29043/
Here, samsung draws a border around one: https://global.samsungdisplay.com/wp-content/uploads/2021/11...
A pixel is made up of multiple components because everything is made of multiple components.
Re: Death to px, long live ch
#60Earlier quoted context omitted.
They aren't hardware based. As I say in the first link, pixels mostly don't exist in hardware. Screens very rarely contain a matrix of individual squares. For example - https://global.samsungdisplay.com/29043/
You’ve linked one example of exactly how those samsung displays do consist of a matrix of individual squares. Here, samsung draws a border around one: https://global.samsungdisplay.com/wp-content/uploads/2021/11... A pixel is made up of multiple components because everything is made of multiple components.
> Samsung Display succeeded in designing the most optimal spatial frequency design with a 45 degree diagonal symmetry across the entire display layout.
See the image: https://global.samsungdisplay.com/wp-content/uploads/2021/11...
All of the components are in that diamond pattern. When you try to draw to a specific pixel width, the display chooses which sub-pixels make up a logical pixel. There is no specific square for you to target.