Bug 9541
| Summary: | Implement CSS units correctly | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Nicholas Shanks <nickshanks> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ian |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Nicholas Shanks
Dave Hyatt wrote on Surfin' Safari:
"Any browser that truly attempted to treat pt as 1/72nd of a physical inch would just end up mis-rendering Web sites … You can’t actually use the physical DPI of the device because it could make the Web site look horribly wrong."
I dispute this, and seek to have 1pt == 1in/72, taking into account the device DPI, and where 1in is exactly one inch across if I hold a ruler up to the screen/page. For example, when dragging a window across screens of differing resolutions, relayout should occur if absolute units are used.
Websites that look horribly wrong like this are *designed* to look horribly wrong. It's not our fault the website designer sucks.
Unless Apple's screens have a way of obtaining their pixel density and dot pitch, this will probably require a lookup table for all flat panels. I think a best guess is all you can achieve with CRTs.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Nicholas Shanks
*** This bug has been marked as a duplicate of 11644 ***