W3C home > Mailing lists > Public > www-style@w3.org > August 1998

RE: OBJECT, inheritance, and rendering

From: David Baron <dbaron@netaxs.com>
Date: Tue, 4 Aug 1998 13:16:29 -0400 (EDT)
Message-Id: <199808041716.NAA13329@unix2.netaxs.com>
To: www-style@w3.org
>On Mon, 3 Aug 1998, Jelks Cabaniss wrote:
>> And we still need a way in CSS to specify the various types that can appear
>> in OBJECT, unless I'm missing something that's already there.  For example,
>> something like:
>> <style type="text/css"><!--
>> 	OBJECT text { color: black; background: "bg.gif" font: 9pt courier
>> monospace }
>> 	OBJECT png  { background: transparent }
>> 	OBJECT html { color: green; background: white }
>> 	OBJECT xml  { color: maroon; background: white }
>> /* These last two could, of course, be overwritten
>>    by the LINKed, embedded or inline styles in the
>>    documents themselves
>> */

There is, in CSS2, a way to do this:
(see http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors )

OBJECT[type="image/png"] { background: transparent }
OBJECT[type="text/html"] { margin-left: 2em }

Also, for what its worth, my opinion on text/html inclusions is that
the default background should be the UA default, and not transparent,
but that it should be allowed to be set to transparent (which would
only make a difference in inclusions).  I also think that client-side
includes would be a very good idea.. using something like a MIME type
of text/htmlfrag.

David Baron

L. David Baron    | Entering Freshman, Harvard
dbaron@netaxs.com | < http://www.psych.upenn.edu/~baron/david/ >
Webmaster, International Weather Satellite Imagery Center, etc.
Received on Tuesday, 4 August 1998 13:16:13 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:12:39 UTC