From 738407371c5eb6eca156decc1a211e17f038b4fd Mon Sep 17 00:00:00 2001 From: Estelle Weyl Date: Thu, 29 Aug 2024 09:20:38 -0700 Subject: [PATCH] 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 --- css/properties.json | 64 ++++++++++++++++++++++++++++++++++++++ css/properties.schema.json | 3 ++ l10n/css.json | 13 ++++++-- 3 files changed, 78 insertions(+), 2 deletions(-) diff --git a/css/properties.json b/css/properties.json index df5bd96f..102e03a9 100644 --- a/css/properties.json +++ b/css/properties.json @@ -4621,6 +4621,22 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cursor" }, + "d": { + "syntax": "none | path()", + "media": "visual", + "inherited": false, + "animationType": "basicShapeOtherwiseNo", + "percentages": "no", + "groups": [ + "Scalable Vector Graphics" + ], + "initial": "none", + "appliesto": "limitedSVGElementsPath", + "computed": "asSpecified", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/d" + }, "cx": { "syntax": " | ", "media": "visual", @@ -4733,6 +4749,54 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/field-sizing" }, + "fill": { + "syntax": "none | | [none | ]? | context-fill | context-stroke", + "media": "visual", + "inherited": true, + "animationType": "byComputedValueType", + "percentages": "no", + "groups": [ + "Scalable Vector Graphics" + ], + "initial": "black", + "appliesto": "limitedSVGElementsShapeText", + "computed": "asColorOrAbsoluteURL", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fill" + }, + "fill-opacity": { + "syntax": "", + "media": "visual", + "inherited": true, + "animationType": "byComputedValueType", + "percentages": "mapToRange0To1", + "groups": [ + "Scalable Vector Graphics" + ], + "initial": "1", + "appliesto": "limitedSVGElementsShapeText", + "computed": "specifiedValueNumberClipped0To1", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fill-opacity" + }, + "fill-rule": { + "syntax": "nonzero | evenodd", + "media": "visual", + "inherited": true, + "animationType": "discrete", + "percentages": "no", + "groups": [ + "Scalable Vector Graphics" + ], + "initial": "nonzero", + "appliesto": "limitedSVGElementsShapeText", + "computed": "asSpecified", + "order": "perGrammar", + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fill-rule" + }, "filter": { "syntax": "none | ", "media": "visual", diff --git a/css/properties.schema.json b/css/properties.schema.json index 2a90d288..99ede0ad 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -116,6 +116,7 @@ "absoluteURIOrNone", "angleRoundedToNextQuarter", "asAutoOrColor", + "asColorOrAbsoluteURL", "asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified", "asLength", "asSpecified", @@ -247,7 +248,9 @@ "limitedSVGElementsGeometry", "limitedSVGElementsGraphics", "limitedSVGElementsGraphicsAndUse", + "limitedSVGElementsPath", "limitedSVGElementsShapes", + "limitedSVGElementsShapeText", "limitedSVGElementsTextContent", "listItems", "maskElements", diff --git a/l10n/css.json b/l10n/css.json index b57e00de..b5f32550 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -369,6 +369,9 @@ "de": "auto wird wie angegeben berechnet und <color> Werte werden wie für die {{cssxref(\"color\")}} Eigenschaft berechnet.", "ja": "auto は仕様通りに計算され、 <color> 値は {{cssxref(\"color\")}} プロパティで定義されたように計算される。" }, + "asColorOrAbsoluteURL": { + "en-US": "as specified, but with <color> values computed and <url> values made absolute" + }, "asDefinedForBasicShapeWithAbsoluteURIOtherwiseAsSpecified": { "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.", "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 @@ "limitedSVGElementsEllipse": { "en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"circle\")}} elements in {{SVGElement(\"svg\")}}" }, + "limitedSVGElementsEllipseRect": { + "en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"rect\")}} elements in {{SVGElement(\"svg\")}}" + }, "limitedSVGElementsGeometry": { "en-US": "{{SVGElement(\"svg\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"image\")}}, and {{SVGElement(\"foreignObject\")}} elements in an svg" }, - "limitedSVGElementsEllipseRect": { - "en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"rect\")}} elements in {{SVGElement(\"svg\")}}" + "limitedSVGElementsPath": { + "en-US": "{{SVGElement(\"path\")}} element in {{SVGElement(\"svg\")}}" + }, + "limitedSVGElementsShapeText": { + "en-US": "SVG shapes and text content elements" }, "limitedSVGElementsFilterPrimitives": { "en-US": "The set of elements that control the output of a {{SVGElement(\"filter\")}} element in {{SVGElement(\"svg\")}}"