Re: box-shadow and features

Brad Kemper wrote:
> 
> On May 15, 2008, at 5:57 PM, Alan Gresley wrote:
>> Inner Box Shadow:
>> http://www.w3.org/Style/CSS/Tracker/issues/44 ISSUE-44
>> There have been quite a few comments about adding such a feature,
>> or at least an "inner glow" feature (which this would address).
> 
> 
> I really don't think that issue 44 is suggesting that an Inner Box 
> shadow should be drawn outside of the box. That just wouldn't make 
> sense. Therefore, issue 32 is only about "outer" shadows, as they 
> currently exist in the spec. I take "drawn outside the element's 
> border-box" to mean that it doesn't matter if the inside of the box is 
> transparent or only partially opaque, because the (outer) shadows will 
> not be drawn there.


That the point with Issue 32. I have always believed that box-shadow 
should be seen through a transparent background. The same as text-shadow 
works.

I will revise my own statement about inner shadow (doesn't make sense). 
I do think that really there should be a property for inner shadow such 
as box-highlight. Yes, quite confusing for authors since box-shadow can 
emulate shadows or highlights and box-highlight would do the same.

I will also support minus values for spread on box-shadow, since all 
missing values will default to zero. This spread could be an outwards 
spread or inwards spread.


>> You keep on intermingling box-shadow with text-shadow.
> 
> As for text shadows, I quite clearly know which one I am talking about, 
> and I often mention them together because the issues that have to do 
> with one are very often relevant to the other. I am not that easily 
> confused by having them mentioned together, but I will try to just talk 
> about one at a time if you think that will help.


Yeah can be confusing. ;-)

How about text-highlight for text. Even though it could be a shadow or 
highlight it could serve the purpose of the inner shadow/glow effect. 
Both box-highlight and text-highlight could be painted above a box 
background or text and box-shadow and text-shadow are painted below a 
box background or text as currently implemented by Safari.


Alan

Received on Friday, 16 May 2008 08:12:20 UTC