Skip to content

Commit

Permalink
Add background-blend-mode and mix-blend-mode (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw authored Sep 25, 2024
1 parent 2733751 commit 7a8467f
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 0 deletions.
8 changes: 8 additions & 0 deletions features/background-blend-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: background-blend-mode
description: The `background-blend-mode` CSS property blends an element's background image and background color using blend modes like `multiply`, `difference`, or `color`.
spec: https://drafts.fxtf.org/compositing-2/#background-blend-mode
caniuse: css-backgroundblendmode
group: blend-mode
compat_features:
- css.properties.background-blend-mode
- css.types.blend-mode
42 changes: 42 additions & 0 deletions features/background-blend-mode.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated from: background-blend-mode.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "35"
chrome_android: "59"
edge: "79"
firefox: "30"
firefox_android: "54"
safari: "8"
safari_ios: "8"
compat_features:
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "35"
# chrome_android: "35"
# edge: "79"
# firefox: "30"
# firefox_android: "30"
# safari: "8"
# safari_ios: "8"
- css.properties.background-blend-mode

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "35"
# chrome_android: "59"
# edge: "79"
# firefox: "30"
# firefox_android: "54"
# safari: "8"
# safari_ios: "8"
- css.types.blend-mode
6 changes: 6 additions & 0 deletions features/isolation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: isolation
description: The `isolation` CSS property creates a new stacking context, which impacts `z-index` ordering and blend modes.
spec: https://drafts.fxtf.org/compositing-2/#isolation
group: blend-mode
compat_features:
- css.properties.isolation
17 changes: 17 additions & 0 deletions features/isolation.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated from: isolation.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "41"
chrome_android: "41"
edge: "79"
firefox: "36"
firefox_android: "36"
safari: "8"
safari_ios: "8"
compat_features:
- css.properties.isolation
12 changes: 12 additions & 0 deletions features/mix-blend-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: mix-blend-mode
description: The `mix-blend-mode` CSS property blends an element's content with its background or parent elements using blend modes like `multiply`, `difference`, or `color`.
spec: https://drafts.fxtf.org/compositing-2/#mix-blend-mode
caniuse: css-mixblendmode
group: blend-mode
status:
compute_from: css.properties.mix-blend-mode
compat_features:
- css.properties.mix-blend-mode
- css.properties.mix-blend-mode.plus-darker
- css.properties.mix-blend-mode.plus-lighter
- css.properties.mix-blend-mode.svg_elements
55 changes: 55 additions & 0 deletions features/mix-blend-mode.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Generated from: mix-blend-mode.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2020-01-15
baseline_high_date: 2022-07-15
support:
chrome: "41"
chrome_android: "41"
edge: "79"
firefox: "32"
firefox_android: "32"
safari: "8"
safari_ios: "8"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "41"
# chrome_android: "41"
# edge: "79"
# firefox: "32"
# firefox_android: "32"
# safari: "8"
# safari_ios: "8"
- css.properties.mix-blend-mode

# baseline: low
# baseline_low_date: 2022-04-05
# support:
# chrome: "100"
# chrome_android: "100"
# edge: "100"
# firefox: "99"
# firefox_android: "99"
# safari: "9.1"
# safari_ios: "9.3"
- css.properties.mix-blend-mode.plus-lighter

# baseline: false
# support:
# chrome: "41"
# edge: "79"
# firefox: "32"
# firefox_android: "32"
- css.properties.mix-blend-mode.svg_elements

# baseline: false
# support:
# safari: ≤13.1
# safari_ios: ≤13.4
- css.properties.mix-blend-mode.plus-darker
4 changes: 4 additions & 0 deletions groups/blend-mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://drafts.fxtf.org/compositing-1/
# Blend modes control how parts of an element are composited, or visually mixed.
name: Blend mode
parent: css

0 comments on commit 7a8467f

Please sign in to comment.