Skip to content

Commit 90a3446

Browse files
feat(css): Add missing rect() and xywh() functions (#927)
1 parent b8cd457 commit 90a3446

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

css/functions.json

+16
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,14 @@
516516
"status": "standard",
517517
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/ray"
518518
},
519+
"rect()": {
520+
"syntax": "rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? )",
521+
"groups": [
522+
"CSS Shapes"
523+
],
524+
"status": "standard",
525+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/rect"
526+
},
519527
"rem()": {
520528
"syntax": "rem( <calc-sum>, <calc-sum> )",
521529
"groups": [
@@ -825,5 +833,13 @@
825833
],
826834
"status": "experimental",
827835
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/animation-timeline/view"
836+
},
837+
"xywh()": {
838+
"syntax": "xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [ round <'border-radius'> ]? )",
839+
"groups": [
840+
"CSS Shapes"
841+
],
842+
"status": "standard",
843+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/xywh"
828844
}
829845
}

css/syntaxes.json

+6
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,9 @@
752752
"relative-size": {
753753
"syntax": "larger | smaller"
754754
},
755+
"rect()": {
756+
"syntax": "rect( [ <length-percentage> | auto ]{4} [ round <'border-radius'> ]? )"
757+
},
755758
"rem()": {
756759
"syntax": "rem( <calc-sum>, <calc-sum> )"
757760
},
@@ -1031,6 +1034,9 @@
10311034
"wq-name": {
10321035
"syntax": "<ns-prefix>? <ident-token>"
10331036
},
1037+
"xywh()": {
1038+
"syntax": "xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [ round <'border-radius'> ]? )"
1039+
},
10341040
"xyz": {
10351041
"syntax": "xyz | xyz-d50 | xyz-d65"
10361042
},

0 commit comments

Comments
 (0)