What is a px if not a pixel? Whether or not a px is a 1:1 relationship to a device pixel is more a matter of manufacturing convention.
Q: How does “21 points, or about 28px” actually convert points to pixels?
Hi Ben, thank you for the question, and it's a good one, so I should probably edit the article to clarify.
Yes, in print, points can be an absolute value, though they differ based on region and era. When I wrote 28px, I am refering to CSS reference px. Ths CSS px is NOT a pixel.
Wait WUT?
This is a common misunderstanding.
The CSS reference px is part of the canvas abstraction layer, and NOT the display. 1px is relative to the canvas. px is defined as 1.278 arc minutes of visual angle as subtended onto the retina. As such, it is the one measure (if taken at the reference) that provides a "true perceptual size". See the chart at the end of this post which details how the CSS reference px correlates to screen density vs view distance.
Manufacturers use this to determine the pitch needed for the device. For instance a phone, intended to be used at a distance of 14" might have a pitch of 192 device pixels per inch, while a desktop display might be 96 pixels per inch, and intended for use 28" away.
In this case, a 10px high letter would have the same visual angle—192ppx@14" = 96ppi@28" CSS also defines the realtionship to a point. One px is defined as 1.333 points.
In common practice, we say that 16px is equal to 12pt. And that is in the CSS specification. I hope that answers your question, feel free to follow up.
Thank you for reading.
ATTACHED: Screen Pitch vs Distance Chart

CSS px vs Actual Pixels was originally published in Tangled Web on Medium, where people are continuing the conversation by highlighting and responding to this story.





