Skip to content

Change anchor for high-dpi devices to pixel #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change anchor for high-dpi devices to pixel
Make the spec match reality, as most (all?) high-dpi screen devices
currently also anchor on pixel unit, and not any physical unit.
  • Loading branch information
patrickhlauke committed Nov 15, 2016
commit 15cddda7030d7e3f36beb63aa7287431d22d77de
6 changes: 3 additions & 3 deletions css-values/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1133,10 +1133,10 @@ Absolute lengths: the ''cm'', ''mm'', ''q'', ''in'', ''pt'', ''pc'', ''px'' unit
<li>by relating the <a value>pixel unit</a> to the <a>reference pixel</a>.
</ol>

For print media and similar high-resolution devices,
For print media,
the anchor unit should be one of the standard physical units (inches, centimeters, etc).
For lower-resolution devices,
and devices with unusual viewing distances,
For screen media (including high-resolution devices, lower-resolution devices,
and devices with unusual viewing distances),
it is recommended instead that the anchor unit be the pixel unit.
For such devices it is recommended that the pixel unit
refer to the whole number of device pixels that best approximates the reference pixel.
Expand Down