From 9398267d02156f7c43ad453fb3e0d67fa5159b52 Mon Sep 17 00:00:00 2001
From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
Date: Mon, 2 Dec 2024 21:40:32 +0800
Subject: [PATCH] feat(css): Add data for `stop-color` & `stop-opacity` (#782)
* Add data for `stop-color` & `stop-opacity`
* update & fix
* Update css/properties.json
* Update css/syntaxes.json
* Update css/properties.json
* update & fix
---
css/properties.json | 32 ++++++++++++++++++++++++++++++++
css/properties.schema.json | 1 +
l10n/css.json | 5 ++++-
3 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/css/properties.json b/css/properties.json
index c226388d..d2e08737 100644
--- a/css/properties.json
+++ b/css/properties.json
@@ -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",
diff --git a/css/properties.schema.json b/css/properties.schema.json
index d9ca6460..cfa9b6c1 100644
--- a/css/properties.schema.json
+++ b/css/properties.schema.json
@@ -257,6 +257,7 @@
"limitedSVGElementsShapes",
"limitedSVGElementsShapesAndTextContent",
"limitedSVGElementsShapeText",
+ "limitedSVGElementsStop",
"limitedSVGElementsTextContent",
"listItems",
"maskElements",
diff --git a/l10n/css.json b/l10n/css.json
index 19d60b08..93b88dfe 100644
--- a/l10n/css.json
+++ b/l10n/css.json
@@ -981,7 +981,7 @@
"en-US": "{{SVGElement(\"svg\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"image\")}}, and {{SVGElement(\"foreignObject\")}} elements in an svg
"
},
"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"
@@ -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 svg
"
},
+ "limitedSVGElementsStop": {
+ "en-US": "{{SVGElement(\"stop\")}} elements in {{SVGElement(\"svg\")}}"
+ },
"limitedSVGElementsTextContent": {
"en-US": "{{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}}, and {{SVGElement(\"tspan\")}} elements in an svg
"
},