Re: breaking hyphen?



On Fri, 28 Oct 2005, Stephen Poley wrote:

> On Thu, 27 Oct 2005 19:20:36 +0100, "Alan J. Flavell"
> <flavell@xxxxxxxxxxxx> wrote:
>
> >On Thu, 27 Oct 2005, Eric B. Bednarz wrote:
> >
> >> (FWIW, HTML 4.01 provides no mechanism to match the intrinsic
> >> dimensions of an image either, nudge-nudge-wink-wink)
> >
> >Yeah, they confuddle the image height and width attributes in HTML
> >4.01 by cross-referencing the definition of the px unit in the CSS
> >specification, which, as we know, is meant to be scaled according to
> >the display situation. Heaven knows what they thought they intended
> >by doing that!

[...]
> What would be a better way of handling this situation?

Pixel-based image formats contain their intrinsic pixel dimensions.
I *thought* the purpose of the HTML height and width attributes were
to pre-declare what these pixel dimensions were. On that basis, their
values *should* be whatever the image itself says they are. With CSS
being used, if desired, to re-scale the image to suit the presentation
situation.

The use of HTML attributes to re-scale an image *ought* to be
deprecated: it's a left-over from the old bad way of HTML/3.2.

In that sense, the px units in HTML would be real px units, whereas px
units in CSS would be what CSS says they are.

But that isn't what the HTML4 specification says.
.



Relevant Pages