Re: box-shadow and border-image and dashes

On Feb 24, 2009, at 10:54 AM, "Robert O'Callahan"  
<robert@ocallahan.org> wrote:

> On Wed, Feb 25, 2009 at 6:04 AM, Brad Kemper <brad.kemper@gmail.com>  
> wrote:
> On Feb 18, 2009, at 1:33 PM, Robert O'Callahan wrote:
>> On Thu, Feb 19, 2009 at 5:14 AM, Brad Kemper  
>> <brad.kemper@gmail.com> wrote:
>> I am leaning towards Hyatt's idea of also having a separate  
>> "shadow" property, that used the alpha of everything in the box  
>> (including the contents and text, perhaps, if the background was  
>> not opaque (maybe a keyword to switch content-shadowing on or  
>> off?)) to determine where the shadow went. Then we could use that  
>> for this automatically generated image-border shadow too.
>>
>> You can actually do this today in Firefox using our extension that  
>> lets SVG filters apply to HTML --- non-standard so far, but I think  
>> it's been viewed receptively by the SVG WG.
>>
>> Try this in FF3.1 trunk: http://people.mozilla.org/~roc/textarea-shadow.html
>
> That is pretty cool. How do you get an RGBA color other than opaque  
> black?
>
> Use <feFlood> to specify the color and combine it with the alpha  
> mask using <feComposite operator='in'>.
>
> Do you have to use feColorMatrix (which looks like it would be  
> somewhat more complicated)?
>
> No.
>
> And a couple more lines for inner shadows? It would nice if you  
> could get the same sort of effect with a single CSS property having  
> a syntax similar to box-shadow (or with a single keyword added to  
> box-shadow).
>
> The effect is obtained with a single CSS property:  
> 'filter:url(effects.xml#drop-shadow)'. effects.xml can be reused via  
> copying or linking; it's library code.

You know what I meant. It is not a single short line of code; it is a  
linked file of more complex code.

> I think the desire to add a CSS keyword or property for each wanted  
> feature is misguided.
> http://weblogs.mozillazine.org/roc/archives/2009/02/filters_librari.HTML

You are entitled to your opinion. But for often used decorations, it  
is much easier for authors to write in CSS than in SVG. You yourself  
argued that it was important to be able to change the color or size of  
a shadow on mouseover without having to link to a different file for  
each state. Yet you now would do essentially the same thing with a  
different variation in SVG XML for each shadow variation?

> Rob
> -- 
> "He was pierced for our transgressions, he was crushed for our  
> iniquities; the punishment that brought us peace was upon him, and  
> by his wounds we are healed. We all, like sheep, have gone astray,  
> each of us has turned to his own way; and the LORD has laid on him  
> the iniquity of us all." [Isaiah 53:5-6]

Received on Tuesday, 24 February 2009 20:26:24 UTC