From eef68d2a4bd0dd58c35e8836a3c8c7ffa06a1595 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:41:33 +0800 Subject: [PATCH 1/6] Add data for `stop-color` & `stop-opacity` --- css/properties.json | 32 ++++++++++++++++++++++++++++++++ css/properties.schema.json | 1 + l10n/css.json | 3 +++ 3 files changed, 36 insertions(+) diff --git a/css/properties.json b/css/properties.json index 3662ee8e..ad535387 100644 --- a/css/properties.json +++ b/css/properties.json @@ -9461,6 +9461,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": [ + "Gradients and Patterns" + ], + "initial": "black", + "appliesto": "stopElements", + "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": [ + "Gradients and Patterns" + ], + "initial": "black", + "appliesto": "stopElements", + "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..67ff33de 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -277,6 +277,7 @@ "scrollContainers", "scrollingBoxes", "sensitiveTextInputs", + "stopElements", "tableCaptionElements", "tableCellElements", "tableElements", diff --git a/l10n/css.json b/l10n/css.json index 19d60b08..b09f099d 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -1715,6 +1715,9 @@ "ja": "startstart に対応していないブラウザーでは、{{cssxref(\"direction\", \"書字方向\")}}が ltr なら leftrtl なら right として動作する無名の値", "ru": "start, или неназванное значение, которое действует как left, если {{cssxref(\"direction\")}}: ltr или как right, если {{cssxref(\"direction\")}}: rtl, а если start не поддерживается браузером." }, + "stopElements": { + "en-US": "{{SVGElement(\"stop\")}} elements" + }, "tableCaptionElements": { "de": "table-caption Elemente", "en-US": "table-caption elements", From 7dee3e44d4c44a307290386cfefe3b1bfad10338 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:01:52 +0800 Subject: [PATCH 2/6] update & fix --- css/properties.json | 8 ++++---- css/syntaxes.json | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/css/properties.json b/css/properties.json index ad535387..4e4d67f8 100644 --- a/css/properties.json +++ b/css/properties.json @@ -9462,13 +9462,13 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/shape-rendering" }, "stop-color": { - "syntax": "<'color'>", + "syntax": "", "media": "visual", "inherited": false, "animationType": "discrete", "percentages": "no", "groups": [ - "Gradients and Patterns" + "Scalable Vector Graphics" ], "initial": "black", "appliesto": "stopElements", @@ -9478,13 +9478,13 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/stop-color" }, "stop-opacity": { - "syntax": "<'opacity'>", + "syntax": "", "media": "visual", "inherited": false, "animationType": "discrete", "percentages": "no", "groups": [ - "Gradients and Patterns" + "Scalable Vector Graphics" ], "initial": "black", "appliesto": "stopElements", diff --git a/css/syntaxes.json b/css/syntaxes.json index 4a0ce22e..1fd145b5 100644 --- a/css/syntaxes.json +++ b/css/syntaxes.json @@ -578,6 +578,9 @@ "opacity()": { "syntax": "opacity( [ ] )" }, + "opacity-value": { + "syntax": " | " + }, "overflow-position": { "syntax": "unsafe | safe" }, From b268d1e0761dba75578a7b48d0a6959822ae6cf3 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Wed, 20 Nov 2024 06:52:02 +0800 Subject: [PATCH 3/6] Update css/properties.json --- css/properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/properties.json b/css/properties.json index 4e4d67f8..93e11ba9 100644 --- a/css/properties.json +++ b/css/properties.json @@ -9478,7 +9478,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/stop-color" }, "stop-opacity": { - "syntax": "", + "syntax": "<'opacity'>", "media": "visual", "inherited": false, "animationType": "discrete", From 45d9604420ec91bd1e321cbf399d5d17d3ef47d7 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Wed, 20 Nov 2024 06:55:27 +0800 Subject: [PATCH 4/6] Update css/syntaxes.json --- css/syntaxes.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/css/syntaxes.json b/css/syntaxes.json index 1fd145b5..4a0ce22e 100644 --- a/css/syntaxes.json +++ b/css/syntaxes.json @@ -578,9 +578,6 @@ "opacity()": { "syntax": "opacity( [ ] )" }, - "opacity-value": { - "syntax": " | " - }, "overflow-position": { "syntax": "unsafe | safe" }, From eda023ed8a5be069d6b4af842f5ceb5835d05438 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Fri, 22 Nov 2024 01:31:46 +0800 Subject: [PATCH 5/6] Update css/properties.json --- css/properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/properties.json b/css/properties.json index 93e11ba9..008ee3ff 100644 --- a/css/properties.json +++ b/css/properties.json @@ -9462,7 +9462,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/shape-rendering" }, "stop-color": { - "syntax": "", + "syntax": "<'color'>", "media": "visual", "inherited": false, "animationType": "discrete", From a2c2209e751b14e16a6fd4537a04c4307422eb71 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Fri, 22 Nov 2024 01:43:05 +0800 Subject: [PATCH 6/6] update & fix --- css/properties.json | 4 ++-- css/properties.schema.json | 2 +- l10n/css.json | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/css/properties.json b/css/properties.json index 008ee3ff..72d36dce 100644 --- a/css/properties.json +++ b/css/properties.json @@ -9471,7 +9471,7 @@ "Scalable Vector Graphics" ], "initial": "black", - "appliesto": "stopElements", + "appliesto": "limitedSVGElementsStop", "computed": "asSpecified", "order": "perGrammar", "status": "standard", @@ -9487,7 +9487,7 @@ "Scalable Vector Graphics" ], "initial": "black", - "appliesto": "stopElements", + "appliesto": "limitedSVGElementsStop", "computed": "asSpecified", "order": "perGrammar", "status": "standard", diff --git a/css/properties.schema.json b/css/properties.schema.json index 67ff33de..cfa9b6c1 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -257,6 +257,7 @@ "limitedSVGElementsShapes", "limitedSVGElementsShapesAndTextContent", "limitedSVGElementsShapeText", + "limitedSVGElementsStop", "limitedSVGElementsTextContent", "listItems", "maskElements", @@ -277,7 +278,6 @@ "scrollContainers", "scrollingBoxes", "sensitiveTextInputs", - "stopElements", "tableCaptionElements", "tableCellElements", "tableElements", diff --git a/l10n/css.json b/l10n/css.json index b09f099d..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" }, @@ -1715,9 +1718,6 @@ "ja": "startstart に対応していないブラウザーでは、{{cssxref(\"direction\", \"書字方向\")}}が ltr なら leftrtl なら right として動作する無名の値", "ru": "start, или неназванное значение, которое действует как left, если {{cssxref(\"direction\")}}: ltr или как right, если {{cssxref(\"direction\")}}: rtl, а если start не поддерживается браузером." }, - "stopElements": { - "en-US": "{{SVGElement(\"stop\")}} elements" - }, "tableCaptionElements": { "de": "table-caption Elemente", "en-US": "table-caption elements",