Received: by 10.68.219.170 with SMTP id pp10mr2805037pbc.1.1340908221090; Thu, 28 Jun 2012 11:30:21 -0700 (PDT) Path: l9ni30445pbj.0!nntp.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.mozilla.org!news.mozilla.org.POSTED!not-for-mail NNTP-Posting-Date: Thu, 28 Jun 2012 13:30:19 -0500 Date: Thu, 28 Jun 2012 11:30:19 -0700 From: fantasai User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: mozilla.dev.tech.layout Subject: Re: Printing in 600 dpi References: <4FEB24EC.2080004@beonex.com> <4FEC65E0.80508@beonex.com> In-Reply-To: <4FEC65E0.80508@beonex.com> Message-ID: <-eudnc8qAsUhP3HSnZ2dnUVZ_i2dnZ2d@mozilla.org> Lines: 25 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 206.15.76.122 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-WAbIsvkkM5LZj4zT10OhN068eOIBmIf7qYe7iGsF542TvRNVBAlA2J3XrsavLuOVnhLNJBx5eevWXu9!mWeC7/JY9fTs0keLw2ijHxHw6Tx1yXw2znLPWb+A0+5TzYPYJ1PTwGHu1dhA6U3DLqLmEamMq++H!zfU+TmC37E9K X-Complaints-To: abuse@mozilla.org X-DMCA-Complaints-To: ab...@mozilla.org X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2435 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 06/28/2012 07:10 AM, Ben Bucksch wrote: > Thanks fantasai :-), for the answer. > > On 28.06.2012 08:16, fantasai wrote: >> so for a 600px image you want printed at 600dpi, size your image as 1in, rather than as 600px, and it should print properly. > > Well, it's not as simple as one image, it's a Javascript library that generates the output. The JS lib must get "4920px" as > width from DOM/style APIs, and that must print as 21cm width in 600 dpi. That would solve it, and I *should* be able to set > this via CSS rules. > >> In CSS, the ratio of px to cm is fixed > > Well, that's the problem, then. It's inherently wrong. Yes, we realize that. Unfortunately, the correct behavior (which is described in older revisions of CSS2.1) turned out to not be Web-compatible: the Web assumes everyone is running 96dpi and that therefore 'width: 1in' is equal to 'width: 96px'. And so after a lot of debate (hundreds of messages worth), the CSSWG resolved on the text here: http://www.w3.org/TR/CSS21/syndata.html#x39 You can see the changes here: http://fantasai.inkedblade.net/style/specs/css2.1/px-unit ~fantasai