[whatwg] to use pixels a DPI should be defined in hader of each page

2008-07-22 Thread Shimon Doodkin Support
in now days we have different sizes of displays some of them huge with low
resolution and some of them normal but with very tiny dots.
usually the DPI of the development machine is matching the dpi of the VIEWER
but sometimes it doesn't
when progress comes and new displays with higher DPI are manufactured no one
buy them because all the text will be very small and unreadable.

i think the missing link between pixels and other real life measures is
missing.
maybe like:
meta name=page_dpi value=96
96 is a dipi of my LCD monitor.
72 is the dpi of crt monitor.
maybe to define it in css
@@set_dpi = 96
or
BODY {display-dpi:96;}
or
.mydiv {display-dpi:96;}
or
.mydiv {font-size:[EMAIL PROTECTED];}
 or any how

the most common usage of pixel sizes is to match between the size of text
and images.
the images are in pixels and the fonts are in pixels and i want to
[left side image of text bar, align=baseline] some text [right side image of
text bar, align=baseline]
if the text is small everything is ok
but if the text get very large it usually displayed incorrectly.

i think pixels also want to grow when zoomed in but they also want to match
the sizes of images

second case that i can guess is fixed div positioning but here i am unsure.

what do you think about supporting dpi?


Re: [whatwg] to use pixels a DPI should be defined in hader of each page

2008-07-22 Thread Ian Hickson
On Tue, 22 Jul 2008, Shimon Doodkin Support wrote:

 in now days we have different sizes of displays some of them huge with 
 low resolution and some of them normal but with very tiny dots. usually 
 the DPI of the development machine is matching the dpi of the VIEWER but 
 sometimes it doesn't when progress comes and new displays with higher 
 DPI are manufactured no one buy them because all the text will be very 
 small and unreadable.

The CSS spec defines the pixel as a nominal 96dpi relative unit, to 
avoid this very problem. HTML5 uses CSS pixels whenever discussing 
dimensions. canvas supports higher resolution backing stores.

This as far as I can tell HTML5 already deals with this.

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'