Skip to content

Commit 8d23efd

Browse files
foolipddbeck
andcommitted
Add clip-path
Co-authored-by: Daniel D. Beck <[email protected]>
1 parent e837dce commit 8d23efd

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

features/clip-path.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: clip-path
2+
description: "The `clip-path` CSS property hides part of an element according to a shape."
3+
spec: https://drafts.fxtf.org/css-masking-1/#clipping-paths
4+
# https://caniuse.com/css-clip-path is not linked here because the browser
5+
# versions are very different, mostly due to lack of support for url() for
6+
# external SVGs being treated as partial support. That is not essential to
7+
# using the feature, and not even mentioned on MDN.
8+
# TODO: align with caniuse and link it here.
9+
status:
10+
compute_from:
11+
- css.properties.clip-path
12+
- css.properties.clip-path.basic_shape
13+
compat_features:
14+
- css.properties.clip-path
15+
- css.properties.clip-path.basic_shape
16+
- css.properties.clip-path.fill-box
17+
- css.properties.clip-path.html_elements
18+
- css.properties.clip-path.path
19+
- css.properties.clip-path.stroke-box
20+
- css.properties.clip-path.svg_elements
21+
- css.properties.clip-path.view-box

features/clip-path.yml.dist

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Generated from: clip-path.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: high
6+
baseline_low_date: 2020-01-15
7+
baseline_high_date: 2022-07-15
8+
support:
9+
chrome: "55"
10+
chrome_android: "55"
11+
edge: "79"
12+
firefox: "54"
13+
firefox_android: "54"
14+
safari: "9.1"
15+
safari_ios: "9.3"
16+
compat_features:
17+
# baseline: high
18+
# baseline_low_date: 2020-01-15
19+
# baseline_high_date: 2022-07-15
20+
# support:
21+
# chrome: "55"
22+
# chrome_android: "55"
23+
# edge: "79"
24+
# firefox: "3.5"
25+
# firefox_android: "4"
26+
# safari: "9.1"
27+
# safari_ios: "9.3"
28+
- css.properties.clip-path
29+
- css.properties.clip-path.html_elements
30+
31+
# baseline: high
32+
# baseline_low_date: 2020-01-15
33+
# baseline_high_date: 2022-07-15
34+
# support:
35+
# chrome: "55"
36+
# chrome_android: "55"
37+
# edge: "79"
38+
# firefox: "52"
39+
# firefox_android: "52"
40+
# safari: "9.1"
41+
# safari_ios: "9.3"
42+
- css.properties.clip-path.svg_elements
43+
44+
# ⬇️ Same status as overall feature ⬇️
45+
# baseline: high
46+
# baseline_low_date: 2020-01-15
47+
# baseline_high_date: 2022-07-15
48+
# support:
49+
# chrome: "55"
50+
# chrome_android: "55"
51+
# edge: "79"
52+
# firefox: "54"
53+
# firefox_android: "54"
54+
# safari: "9.1"
55+
# safari_ios: "9.3"
56+
- css.properties.clip-path.basic_shape
57+
58+
# baseline: high
59+
# baseline_low_date: 2021-01-21
60+
# baseline_high_date: 2023-07-21
61+
# support:
62+
# chrome: "88"
63+
# chrome_android: "88"
64+
# edge: "88"
65+
# firefox: "71"
66+
# firefox_android: "79"
67+
# safari: "13.1"
68+
# safari_ios: "13"
69+
- css.properties.clip-path.path
70+
71+
# baseline: low
72+
# baseline_low_date: 2023-11-02
73+
# support:
74+
# chrome: "119"
75+
# chrome_android: "119"
76+
# edge: "119"
77+
# firefox: "51"
78+
# firefox_android: "51"
79+
# safari: "13.1"
80+
# safari_ios: "13.4"
81+
- css.properties.clip-path.fill-box
82+
- css.properties.clip-path.stroke-box
83+
84+
# baseline: low
85+
# baseline_low_date: 2023-11-02
86+
# support:
87+
# chrome: "119"
88+
# chrome_android: "119"
89+
# edge: "119"
90+
# firefox: ≤72
91+
# firefox_android: "79"
92+
# safari: ≤13.1
93+
# safari_ios: ≤13.4
94+
- css.properties.clip-path.view-box

0 commit comments

Comments
 (0)