Skip to content

Commit

Permalink
Add clip-path
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
  • Loading branch information
foolip and ddbeck committed Jul 22, 2024
1 parent e837dce commit 8d23efd
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
21 changes: 21 additions & 0 deletions features/clip-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: clip-path
description: "The `clip-path` CSS property hides part of an element according to a shape."
spec: https://drafts.fxtf.org/css-masking-1/#clipping-paths
# https://caniuse.com/css-clip-path is not linked here because the browser
# versions are very different, mostly due to lack of support for url() for
# external SVGs being treated as partial support. That is not essential to
# using the feature, and not even mentioned on MDN.
# TODO: align with caniuse and link it here.
status:
compute_from:
- css.properties.clip-path
- css.properties.clip-path.basic_shape
compat_features:
- css.properties.clip-path
- css.properties.clip-path.basic_shape
- css.properties.clip-path.fill-box
- css.properties.clip-path.html_elements
- css.properties.clip-path.path
- css.properties.clip-path.stroke-box
- css.properties.clip-path.svg_elements
- css.properties.clip-path.view-box
94 changes: 94 additions & 0 deletions features/clip-path.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Generated from: clip-path.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: "55"
chrome_android: "55"
edge: "79"
firefox: "54"
firefox_android: "54"
safari: "9.1"
safari_ios: "9.3"
compat_features:
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "55"
# chrome_android: "55"
# edge: "79"
# firefox: "3.5"
# firefox_android: "4"
# safari: "9.1"
# safari_ios: "9.3"
- css.properties.clip-path
- css.properties.clip-path.html_elements

# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "55"
# chrome_android: "55"
# edge: "79"
# firefox: "52"
# firefox_android: "52"
# safari: "9.1"
# safari_ios: "9.3"
- css.properties.clip-path.svg_elements

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "55"
# chrome_android: "55"
# edge: "79"
# firefox: "54"
# firefox_android: "54"
# safari: "9.1"
# safari_ios: "9.3"
- css.properties.clip-path.basic_shape

# baseline: high
# baseline_low_date: 2021-01-21
# baseline_high_date: 2023-07-21
# support:
# chrome: "88"
# chrome_android: "88"
# edge: "88"
# firefox: "71"
# firefox_android: "79"
# safari: "13.1"
# safari_ios: "13"
- css.properties.clip-path.path

# baseline: low
# baseline_low_date: 2023-11-02
# support:
# chrome: "119"
# chrome_android: "119"
# edge: "119"
# firefox: "51"
# firefox_android: "51"
# safari: "13.1"
# safari_ios: "13.4"
- css.properties.clip-path.fill-box
- css.properties.clip-path.stroke-box

# baseline: low
# baseline_low_date: 2023-11-02
# support:
# chrome: "119"
# chrome_android: "119"
# edge: "119"
# firefox: ≤72
# firefox_android: "79"
# safari: ≤13.1
# safari_ios: ≤13.4
- css.properties.clip-path.view-box

0 comments on commit 8d23efd

Please sign in to comment.