W3C home > Mailing lists > Public > www-style@w3.org > November 1999

Re: Position of ALT text on IMG

From: Tantek Celik <tantek@cs.stanford.edu>
Date: Mon, 01 Nov 1999 15:04:46 -0800
To: www-style@w3.org
Message-ID: <1270625009-545915807@psdbay.com>
<anonymous> wrote:

> I would like a means of specifying the position of the
> alt text (as in <img src="x.x" alt="Home" width="100"
> height="200">) on IMG.
>
> With UAs that draw a full size box for such elements
> this is of paramount importance. Even for those that
> do not, it would be of utility.
>
> The simplest thing seems to be to have IMG:alt.
>
> Everything except for display would valid on this, and
> although many of the properties could be equally
> accessed via IMG {}, text-align and vertical-align
> would have different effects.

There is the general issue of placeholder content of which the ALT attribute
on the IMG tag is one example.  The SUMMARY attribute of TABLE is another
example.

About a year ago, there was some discussion in the working group about
progressive rendering which covered concepts such as partial content and
placeholders.  In summary: new pseudo-class ":partial" (the element is in a
state of being "partially" loaded, rather than a new "partial" element being
generated) and new property "placeholder: previous | partial | content |
inherit" - where the "content" value could be used to simulate the stylistic
effect of ALT and SUMMARY attributes in HTML4.

The intention of the discussion was to be able to specify what is displayed
in lieu of an image while the the image is being downloading, e.g.

 IMG:partial { placeholder: content; content: attr(ALT); }

Now, as to how you style the value of the content property itself, that is a
different question, following the IMG:alt reasoning you could have:

 IMG:placeholder { text-align: left; vertical-align: top }

With this :placeholder pseudo-element, and the abstraction from a particular
attribute, you can then also use it for other tags and attributes as well.

Tantek

P.S.:

> =====
>
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com

Do postings from yahoomail always show anonymous or is this just one person?
Would it be too much to ask the author to sign their messages?  I get very
little header information on these yahoomail emails, and can only infer from
the minimal header that this was a www-style posting. Or perhaps this is an
error with my reader.

> Received: (from daemon@localhost)
>  by www19.w3.org (8.9.0/8.9.0) id LAA27995;
>  Mon, 1 Nov 1999 11:09:01 -0500 (EST)
> Resent-Date: Mon, 1 Nov 1999 11:09:01 -0500 (EST)
> Resent-Message-Id: <199911011609.LAA27995@www19.w3.org>
> Message-ID: <19991101161357.2548.rocketmail@web905.mail.yahoo.com>
> Date: Mon, 1 Nov 1999 08:13:57 -0800 (PST)
> From:
> 
Received on Monday, 1 November 1999 18:05:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:01 GMT