Skip to content

Commit

Permalink
feat(css): Add data for stop-color & stop-opacity (#782)
Browse files Browse the repository at this point in the history
* Add data for `stop-color` & `stop-opacity`

* update & fix

* Update css/properties.json

* Update css/syntaxes.json

* Update css/properties.json

* update & fix
  • Loading branch information
skyclouds2001 authored Dec 2, 2024
1 parent 1b708b3 commit 9398267
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
32 changes: 32 additions & 0 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -9467,6 +9467,38 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/shape-rendering"
},
"stop-color": {
"syntax": "<'color'>",
"media": "visual",
"inherited": false,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "black",
"appliesto": "limitedSVGElementsStop",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/stop-color"
},
"stop-opacity": {
"syntax": "<'opacity'>",
"media": "visual",
"inherited": false,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "black",
"appliesto": "limitedSVGElementsStop",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/stop-opacity"
},
"stroke": {
"syntax": "",
"media": "visual",
Expand Down
1 change: 1 addition & 0 deletions css/properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
"limitedSVGElementsShapes",
"limitedSVGElementsShapesAndTextContent",
"limitedSVGElementsShapeText",
"limitedSVGElementsStop",
"limitedSVGElementsTextContent",
"listItems",
"maskElements",
Expand Down
5 changes: 4 additions & 1 deletion l10n/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@
"en-US": "{{SVGElement(\"svg\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"image\")}}, and {{SVGElement(\"foreignObject\")}} elements in an <code>svg</code>"
},
"limitedSVGElementsPath": {
"en-US": "{{SVGElement(\"path\")}} element in {{SVGElement(\"svg\")}}"
"en-US": "{{SVGElement(\"path\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsShapeText": {
"en-US": "SVG shapes and text content elements"
Expand All @@ -1001,6 +1001,9 @@
"limitedSVGElementsShapesAndTextContent": {
"en-US": "{{SVGElement(\"circle\")}}, {{SVGElement(\"ellipse\")}}, {{SVGElement(\"line\")}}, {{SVGElement(\"path\")}}, {{SVGElement(\"polygon\")}}, {{SVGElement(\"polyline\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}}, and {{SVGElement(\"tspan\")}} elements in an <code>svg</code>"
},
"limitedSVGElementsStop": {
"en-US": "{{SVGElement(\"stop\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsTextContent": {
"en-US": "{{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}}, and {{SVGElement(\"tspan\")}} elements in an <code>svg</code>"
},
Expand Down

0 comments on commit 9398267

Please sign in to comment.