W3C home > Mailing lists > Public > www-style@w3.org > July 1995

Re: Conditional application of style hints

From: Joe English <joe@trystero.art.com>
Date: Sun, 09 Jul 1995 19:29:56 PDT
Message-Id: <9507100229.AA18767@trystero.art.com>
To: www-style@www10.w3.org

koreth@hyperion.com (Steven Grimm) wrote:

> There needs to be a way to tell the browser, "only apply attribute X if
> you can apply attribute Y too."  Otherwise we'll run into situations where
> documents will be unreadable because a particular browser (perhaps due to
> platform limitations) can only present half the style hints, and the half
> that *are* presented don't make sense without the others.
> 
> For example, I was playing around with style sheets in Arena 0.97 and
> tried to put a background image in my document as described in the draft
> spec.  "back.image" doesn't seem to be implemented yet.  Unfortunately,
> font.color is, and my colors assumed that the background image would be
> loaded.

In this particular case, you should specify a background
color that contrasts with your foreground color as well
for the browsers that don't understand background images.

> [ ... ]
> Where we allow an additional name to be assigned to a style element, and
> allow other style elements to depend on the success of the first one.  Sort
> of a dependency tree, if you will, which I think is an appropriate way to
> think about this problem.  

I think the specification language should be kept as
simple as possible.  If it's too complex, no two browsers
will implement it the same way, and some may not bother 
implementing stylesheets at all.


--Joe English

  joe@trysteor.art.com
Received on Sunday, 9 July 1995 22:30:05 GMT

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