Re: [filter-effects] filter different components of an element

On Sep 6, 2013, at 10:52 PM, Lea Verou <> wrote:

> On Sep 6, 2013, at 12:23, Dirk Schulze <> wrote:
>> With the CSS filter() image function I see a lot of the use cases already addressed. You can filter background-image, border-image-source, mask-image, mask-image-source, list-item-image and apply the filter property on the content itself. There are still things you can not do with the filter property nor with the filter() function, but I didn't hear any request from authors so far.
>> I would be in favor for removing this issue or (if people feel strongly about it) at least delay it to the next level of the spec.
>> Any opinions?
> Are there any actual use cases that filter() doesn’t cover?

filter() can just filter CSS Images. You can not filter border: solid black 1px; for example.

> Although it might be worth it to design a generic mechanism for styling backgrounds, borders etc separately. Many of the FXTF specs need this: Blending modes, Compositing, filters, masking etc. If this is exposed, it’s seems unwise to approach every case separately. Perhaps we could do it by adding a bunch of pseudo-elements? But then it gets complicated to define which properties are available there…

I agree. If we want to have special mechanism like "filter the border" or "filter just the content" with a property on the element itself, we should have global, property independent mechanism to define which paint phase should be affected. This is quite a challenge especially with blending where you may want to blend different paint phases with each other. But solvable.


> ~Lea

Received on Saturday, 7 September 2013 08:04:12 UTC