Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add background-blend-mode and mix-blend-mode #1648

Merged
merged 5 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jamesnw marked this conversation as resolved.
Show resolved Hide resolved
parent: css