Skip to content

Commit 7384073

Browse files
estellebsmth
andauthored
feat: add CSS SVG d and fill-* properties (#754)
* asColorOrAbsoluteURL * alphabetical order * added d property * added d property * added d property * Update css/properties.json --------- Co-authored-by: Brian Thomas Smith <[email protected]>
1 parent cae4438 commit 7384073

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed

css/properties.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4621,6 +4621,22 @@
46214621
"status": "standard",
46224622
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cursor"
46234623
},
4624+
"d": {
4625+
"syntax": "none | path(<string>)",
4626+
"media": "visual",
4627+
"inherited": false,
4628+
"animationType": "basicShapeOtherwiseNo",
4629+
"percentages": "no",
4630+
"groups": [
4631+
"Scalable Vector Graphics"
4632+
],
4633+
"initial": "none",
4634+
"appliesto": "limitedSVGElementsPath",
4635+
"computed": "asSpecified",
4636+
"order": "perGrammar",
4637+
"status": "standard",
4638+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/d"
4639+
},
46244640
"cx": {
46254641
"syntax": "<length> | <percentage>",
46264642
"media": "visual",
@@ -4733,6 +4749,54 @@
47334749
"status": "standard",
47344750
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/field-sizing"
47354751
},
4752+
"fill": {
4753+
"syntax": "none | <color> | <url> [none | <color>]? | context-fill | context-stroke",
4754+
"media": "visual",
4755+
"inherited": true,
4756+
"animationType": "byComputedValueType",
4757+
"percentages": "no",
4758+
"groups": [
4759+
"Scalable Vector Graphics"
4760+
],
4761+
"initial": "black",
4762+
"appliesto": "limitedSVGElementsShapeText",
4763+
"computed": "asColorOrAbsoluteURL",
4764+
"order": "perGrammar",
4765+
"status": "standard",
4766+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fill"
4767+
},
4768+
"fill-opacity": {
4769+
"syntax": "<alpha-value>",
4770+
"media": "visual",
4771+
"inherited": true,
4772+
"animationType": "byComputedValueType",
4773+
"percentages": "mapToRange0To1",
4774+
"groups": [
4775+
"Scalable Vector Graphics"
4776+
],
4777+
"initial": "1",
4778+
"appliesto": "limitedSVGElementsShapeText",
4779+
"computed": "specifiedValueNumberClipped0To1",
4780+
"order": "perGrammar",
4781+
"status": "standard",
4782+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fill-opacity"
4783+
},
4784+
"fill-rule": {
4785+
"syntax": "nonzero | evenodd",
4786+
"media": "visual",
4787+
"inherited": true,
4788+
"animationType": "discrete",
4789+
"percentages": "no",
4790+
"groups": [
4791+
"Scalable Vector Graphics"
4792+
],
4793+
"initial": "nonzero",
4794+
"appliesto": "limitedSVGElementsShapeText",
4795+
"computed": "asSpecified",
4796+
"order": "perGrammar",
4797+
"status": "standard",
4798+
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fill-rule"
4799+
},
47364800
"filter": {
47374801
"syntax": "none | <filter-function-list>",
47384802
"media": "visual",

css/properties.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"absoluteURIOrNone",
117117
"angleRoundedToNextQuarter",
118118
"asAutoOrColor",
119+
"asColorOrAbsoluteURL",
119120
"asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified",
120121
"asLength",
121122
"asSpecified",
@@ -247,7 +248,9 @@
247248
"limitedSVGElementsGeometry",
248249
"limitedSVGElementsGraphics",
249250
"limitedSVGElementsGraphicsAndUse",
251+
"limitedSVGElementsPath",
250252
"limitedSVGElementsShapes",
253+
"limitedSVGElementsShapeText",
251254
"limitedSVGElementsTextContent",
252255
"listItems",
253256
"maskElements",

l10n/css.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@
369369
"de": "<code>auto</code> wird wie angegeben berechnet und <code>&lt;color&gt;</code> Werte werden wie für die {{cssxref(\"color\")}} Eigenschaft berechnet.",
370370
"ja": "<code>auto</code> は仕様通りに計算され、 <code>&lt;color&gt;</code> 値は {{cssxref(\"color\")}} プロパティで定義されたように計算される。"
371371
},
372+
"asColorOrAbsoluteURL": {
373+
"en-US": "as specified, but with <code>&lt;color&gt;</code> values computed and <code>&lt;url&gt;</code> values made absolute"
374+
},
372375
"asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified": {
373376
"de": "wie definiert für {{cssxref(\"basic-shape\")}} (gefolgt von {{cssxref(\"shape-box\")}}, falls angegeben), dem {{cssxref(\"image\")}}, dessen URI absolut gemacht wurde, ansonsten wie angegeben.",
374377
"en-US": "as defined for {{cssxref(\"basic-shape\")}} (with {{cssxref(\"shape-box\")}} following, if supplied), the {{cssxref(\"image\")}} with its URI made absolute, otherwise as specified.",
@@ -968,11 +971,17 @@
968971
"limitedSVGElementsEllipse": {
969972
"en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"circle\")}} elements in {{SVGElement(\"svg\")}}"
970973
},
974+
"limitedSVGElementsEllipseRect": {
975+
"en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"rect\")}} elements in {{SVGElement(\"svg\")}}"
976+
},
971977
"limitedSVGElementsGeometry": {
972978
"en-US": "{{SVGElement(\"svg\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"image\")}}, and {{SVGElement(\"foreignObject\")}} elements in an <code>svg</code>"
973979
},
974-
"limitedSVGElementsEllipseRect": {
975-
"en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"rect\")}} elements in {{SVGElement(\"svg\")}}"
980+
"limitedSVGElementsPath": {
981+
"en-US": "{{SVGElement(\"path\")}} element in {{SVGElement(\"svg\")}}"
982+
},
983+
"limitedSVGElementsShapeText": {
984+
"en-US": "SVG shapes and text content elements"
976985
},
977986
"limitedSVGElementsFilterPrimitives": {
978987
"en-US": "The set of elements that control the output of a {{SVGElement(\"filter\")}} element in {{SVGElement(\"svg\")}}"

0 commit comments

Comments
 (0)