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

Re: For specific opacity properties (was Re: Opacity 0-1: Bad Idea?)

From: fantasai <fantasai@escape.com>
Date: Thu, 15 Nov 2001 17:27:12 -0500
Message-ID: <3BF44140.7CAB0EEF@escape.com>
To: www-style@w3.org
Etan Wexler wrote:
> The specification should stipulate that a specified value of
> 'transparent' for a border color computes as 'black' for the border
> color and as 0 for the corresponding border opacity property.  (What
> happens if a border opacity declaration conflicts?  Is the effective
> opacity value 0 or the one from the opacity declaration?)

If it follows the example of border-style: none, a border color of
transparent will not affect the specified value of opacity, but
will merely force the computed value of opacity to zero.

Thus if I specify
  element {
     border-style: solid;
     border-color: transparent;
     border-opacity: 0.5;
  element:hover {
     border-color: blue;

<element> will have a 50% opaque blue border on hover and a
transparent one otherwise.

> My suggestion for the name of the text opacity property is
> 'foreground-opacity'.

If that does not include border opacity, I suggest content-opacity.
Received on Thursday, 15 November 2001 17:24:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:59 UTC