- From: Ernest Cline <ernestcline@mindspring.com>
- Date: Sun, 28 Dec 2003 21:55:12 -0500
- To: "W3C CSS List" <www-style@w3.org>
The current working draft [1] leaves the definition of intrinsic size entirely to the user agent as has been the practice in previous versions of CSS. However, this is not entirely satisfactory. The problem I am encountering is coming specifically from JPEG's, but may apply to other forms of replaced content as well. The image/jpeg format is a pixelated format that can set optional DPI (dots per inch) values for the vertical and horizontal dimensions. The problem is that some user agents choose to render JPEG's that provide the information at 1px = 1 pixel and others at 1in = h pixels horizontal and 1 in = h pixels vertical (where the DPI for the image is given as h by v). What I would like is some way to indicate which of these two choices I prefer without having to specify the size in either px or in for each image. Say something like: img[src$=".jpg"] { intrinsic-size: px } @media print { img[src$=".jpg"] { intrinsic-size: in } } with perhaps some better way of indicating preferred sizing. [1] http://www.w3.org/TR/2002/WD-css3-box-20021024/#intrinsic Ernest Cline ernestcline@mindspring.com
Received on Sunday, 28 December 2003 21:56:42 UTC