Skip to content

Commit b126486

Browse files
committed
Add CSS filter() function
Fixes #3378 This has been supported since Safari 9, see https://caniuse.com/css-filter-function.
1 parent e622b2b commit b126486

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

features/filter-function.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: filter()
2+
description: The `filter()` CSS function applies one or more graphic effects to a CSS image, such as a background image. You can use functions, such as `blur()` and `drop-shadow()`, alone or combined to produce different effects. For instance, `background: filter(url(image.png), blur(2px))`.
3+
spec: https://drafts.csswg.org/filter-effects-1/#FilterCSSImageValue
4+
group: css
5+
caniuse: css-filter-function
6+
compat_features:
7+
- css.types.image.filter

features/filter-function.yml.dist

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Generated from: filter-function.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
safari: "9.1"
8+
safari_ios: "9.3"
9+
compat_features:
10+
- css.types.image.filter

features/filter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: filter
2-
description: The `filter` CSS property applies one or more graphic effects to an element. You can use filter functions, such as `blur()` and `drop-shadow()`, alone or combined to produce different effects.
2+
description: The `filter` CSS property applies one or more graphic effects to an element. You can use filter functions, such as `blur()` and `drop-shadow()`, alone or combined to produce different effects. For instance, `filter: blur(2px)`.
33
spec: https://drafts.csswg.org/filter-effects-1/#propdef-filter
44
group: css
55
caniuse: css-filters

0 commit comments

Comments
 (0)