Skip to content

[css-backgrounds-4] background-filter #4706

@meyerweb

Description

@meyerweb

I’m proposing a property: background-filter. It allows the application of filters to background layers, parallel to the way background-blend-mode applies blending modes.

As an example:

body {
   background-image: url(waves.png),url(waves.png),url(horizon.jpg);
   background-position: center, 0 50%, 50% 100%;
   background-repeat: repeat-x;
   background-filter: none, blur(0.2px) opacity(0.8), blur(1px);
}

Unless browsers would like to just implement https://www.w3.org/TR/filter-effects-1/#FilterCSSImageValue, of course. That would address the need, but much more generally. (Thanks to Dan Wilson for the pointer!)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions