W3C home > Mailing lists > Public > www-html@w3.org > July 1998

Re: The color of inclusions via OBJECT (was RE: OBJECT, inheritance, and rendering)

From: Walter Ian Kaye <walter@natural-innovations.com>
Date: Thu, 30 Jul 1998 16:18:20 -0700
Message-Id: <v03130304b1e6ad56c53e@[]>
To: <braden@endoframe.com>, "'Simon Richter'" <geier@psi5.com>
Cc: "'Todd Fahrner'" <fahrner@pobox.com>, <www-style@w3.org>, <www-html@w3.org>
[cc list getting long... someone say "when!"]

At 3:44p -0700 07/30/98, Braden N. McDaniel wrote:
>A possible solution to this is to change the initial value of "color" from
>"implementation-defined" to simply guarantee that the initial color will
>contrast with the base background color. This could be guaranteed
>numerically, yes?

Well, algorithmically. I once wrote a function to simply get the "opposite"
color numerically which worked for most colors, but for those whose opposite
is almost the same (what's the opposite of 50%?), the foreground and background
colors were difficult to contrast. There would have to be some pre-decided
"opposites" for colors in the middle between light and dark.

 "What's the difference between a duck?"

 "Both legs are shorter than the other."

  Walter Ian Kaye <boo@SLAC.Stanford.EDU>        Menlo Park, CA
  Perl on Unix, AppleScript on MacOS, at the nation's first WWW server.
Received on Thursday, 30 July 1998 19:19:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:48 UTC