Skip to content

Commit e36bd69

Browse files
jamesnwddbeck
andauthored
Split CSS shape functions (#3340)
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
1 parent 00415c5 commit e36bd69

File tree

6 files changed

+46
-40
lines changed

6 files changed

+46
-40
lines changed

features/rect-xywx.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: rect() and xywh()
2+
description: The `rect()` CSS function creates a rectangle shape with insets from the edges of an element. The `xywh()` CSS function creates a rectangle shifted by an `x` and `y` distance. They can be used with `clip-path` and `shape-outside`.
3+
spec:
4+
- https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-xywh
5+
- https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-rect
6+
group: clipping-shapes-masking
7+
compat_features:
8+
- css.types.basic-shape.rect
9+
- css.types.basic-shape.xywh

features/rect-xywx.yml.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: rect-xywx.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: low
6+
baseline_low_date: 2024-01-23
7+
support:
8+
chrome: "119"
9+
chrome_android: "119"
10+
edge: "119"
11+
firefox: "122"
12+
firefox_android: "122"
13+
safari: "17.2"
14+
safari_ios: "17.2"
15+
compat_features:
16+
- css.types.basic-shape.rect
17+
- css.types.basic-shape.xywh

features/shape-function.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: shape()
2+
description: The `shape()` CSS function creates shapes with a series of commands like `line`, `move`, and `curve`. It can be used with `clip-path` and `shape-outside`.
3+
spec: https://drafts.csswg.org/css-shapes-1/#shape-function
4+
group: clipping-shapes-masking
5+
compat_features:
6+
- css.types.basic-shape.shape

features/shape-function.yml.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Generated from: shape-function.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "135"
8+
chrome_android: "135"
9+
edge: "135"
10+
safari: "18.4"
11+
safari_ios: "18.4"
12+
compat_features:
13+
- css.types.basic-shape.shape

features/shapes.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
name: shapes
2-
description: The `circle()`, `ellipse()`, `inset()`, `polygon()`, `rect()`, and `xywh()` CSS shape functions create shapes for use with `clip-path` and `shape-outside`.
2+
description: The `circle()`, `ellipse()`, `inset()`, and `polygon()` CSS shape functions create shapes for use with `clip-path` and `shape-outside`.
33
spec: https://drafts.csswg.org/css-shapes-1/#basic-shape-functions
44
caniuse: css-shapes
55
group: clipping-shapes-masking
6-
status:
7-
compute_from: css.types.basic-shape
86
compat_features:
97
- css.types.basic-shape
108
- css.types.basic-shape.animation
119
- css.types.basic-shape.circle
1210
- css.types.basic-shape.ellipse
1311
- css.types.basic-shape.inset
1412
- css.types.basic-shape.polygon
15-
- css.types.basic-shape.rect
16-
- css.types.basic-shape.shape
17-
- css.types.basic-shape.xywh

features/shapes.yml.dist

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,9 @@ status:
1414
safari: "10.1"
1515
safari_ios: "10.3"
1616
compat_features:
17-
# ⬇️ Same status as overall feature ⬇️
18-
# baseline: high
19-
# baseline_low_date: 2020-01-15
20-
# baseline_high_date: 2022-07-15
21-
# support:
22-
# chrome: "37"
23-
# chrome_android: "37"
24-
# edge: "79"
25-
# firefox: "54"
26-
# firefox_android: "54"
27-
# safari: "10.1"
28-
# safari_ios: "10.3"
2917
- css.types.basic-shape
3018
- css.types.basic-shape.animation
3119
- css.types.basic-shape.circle
3220
- css.types.basic-shape.ellipse
3321
- css.types.basic-shape.inset
3422
- css.types.basic-shape.polygon
35-
36-
# baseline: low
37-
# baseline_low_date: 2024-01-23
38-
# support:
39-
# chrome: "119"
40-
# chrome_android: "119"
41-
# edge: "119"
42-
# firefox: "122"
43-
# firefox_android: "122"
44-
# safari: "17.2"
45-
# safari_ios: "17.2"
46-
- css.types.basic-shape.rect
47-
- css.types.basic-shape.xywh
48-
49-
# baseline: false
50-
# support:
51-
# chrome: "135"
52-
# chrome_android: "135"
53-
# edge: "135"
54-
# safari: "18.4"
55-
# safari_ios: "18.4"
56-
- css.types.basic-shape.shape

0 commit comments

Comments
 (0)