W3C home > Mailing lists > Public > www-style@w3.org > September 2010

[css3-images] Resolution units

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Sat, 11 Sep 2010 16:14:54 +0200
Message-Id: <2066DE3E-63FA-45F8-9A69-E8090990C0E3@crissov.de>
To: "www-style@w3.org list" <www-style@w3.org>
I know resolution defined as dots per length has already been introduced with Media Queries, but I still think it’s wrong to use ‘dpi’, ‘dpcm’ and (new) ‘dppx’ when we already have a whole bunch of length units which are just the inverse. I suggest we describe the dot size instead, using the units CSS has, or we use ‘calc()’.

  dot-count: 72dpi;
  dot-count: 100dpcm; /* 254dpi */
  dot-count: 4dppx;


  dot-size: 1pt;
  dot-size: 0.1mm; /* 100um */
  dot-size: 0.25px;


  dot-count: calc(72 / 1in); /* or (1 / 1pt) */
  dot-count: calc(10 / 1mm);
  dot-count: calc(4 / 1px); 

(I think plain numbers are fine here, but perhaps you would need to introduce a unit ‘dot’ to work well with ‘calc()’.)
Received on Saturday, 11 September 2010 14:15:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC