W3C home > Mailing lists > Public > www-style@w3.org > November 2013

Re: [css-values] The length unit 'Q' (quarter of millimeter)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 18 Nov 2013 12:39:09 -0800
Message-ID: <CAAWBYDA4J4mvvw_Q-0fr_EbSyVEpOCCDGXwbcHX741w6ukE_fQ@mail.gmail.com>
To: Felix Miata <mrmazda@earthlink.net>
Cc: www-style list <www-style@w3.org>
On Mon, Nov 18, 2013 at 12:23 PM, Felix Miata <mrmazda@earthlink.net> wrote:
> The pt unit no longer exists except in old browsers, Konqueror when
> configured to use the KHTML engine, or any other browser that may exist that
> uses the KHTML engine.

Yes it does.

> Pt for quite some time has been a synonym for px in
> Blink, Gecko, Trident and WebKit.

No it's not.  1pt = 4/3px.  In easier terms, 12pt == 16px.

Try this in any browser you want:

<!DOCTYPE html>
<div></div>
<div></div>
<style>
div { height: 20px;border: 1px solid; }
div:nth-child(1) { width: 12pt; }
div:nth-child(2) { width: 16px; }
</style>

> There is a workaround that can work in Gecko browsers, which provide the
> mozmm unit for those who need or want absolute units that render physical
> dimensions accurately on accurately configured displays.
>
> It is unfortunate that web pages dependent on absolute units must now append
> instructions that intended use of a page requires use of an old, Gecko or
> KHTML browser, or even a particular operating system to run it, to be able
> to do what it was originally designed to do, and worked well enough before
> the retirement of absolute units.

Please do not attempt to hijack this thread with discussion of physical units.

~TJ
Received on Monday, 18 November 2013 20:39:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:37 UTC