Skip to content

Commit

Permalink
Add five SVG-based CSS properties
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerweb committed Aug 15, 2024
1 parent ab6bf8a commit 9f5ac08
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
80 changes: 80 additions & 0 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4107,6 +4107,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clip-path"
},
"clip-rule": {
"syntax": "nonzero | evenodd",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "nonzero",
"appliesto": "limitedSVGElementsGraphics",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clip-rule"
},
"color": {
"syntax": "<color>",
"media": "visual",
Expand All @@ -4128,6 +4144,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color"
},
"color-interpolation-filters": {
"syntax": "auto | sRGB | linearRGB",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "linearRGB",
"appliesto": "limitedSVGElementsFilterPrimitives",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clip-rule"
},
"color-scheme": {
"syntax": "normal | [ light | dark | <custom-ident> ]+ && only?",
"media": "visual",
Expand Down Expand Up @@ -4653,6 +4685,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/display"
},
"dominant-baseline": {
"syntax": "auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top",
"media": "all",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "auto",
"appliesto": "blockContainersFlexContainersGridContainersInlineBoxesTableRowsSVGTextContentElements",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/dominant-baseline"
},
"empty-cells": {
"syntax": "show | hide",
"media": "visual",
Expand Down Expand Up @@ -9312,6 +9360,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-align-last"
},
"text-anchor": {
"syntax": "start | middle | end",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "start",
"appliesto": "limitedSVGElementsTextContent",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-anchor"
},
"text-combine-upright": {
"syntax": "none | all | [ digits <integer>? ]",
"media": "visual",
Expand Down Expand Up @@ -10065,6 +10129,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/user-select"
},
"vector-effect": {
"syntax": "none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position",
"media": "visual",
"inherited": false,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "start",
"appliesto": "limitedSVGElementsGraphicsAndUse",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/vector-effect"
},
"vertical-align": {
"syntax": "baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",
"media": "visual",
Expand Down
5 changes: 5 additions & 0 deletions css/properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
"blockContainersExceptMultiColumnContainers",
"blockContainersExceptTableWrappers",
"blockContainersFlexContainersGridContainers",
"blockContainersFlexContainersGridContainersInlineBoxesTableRowsSVGTextContentElements",
"blockContainersMultiColumnContainersFlexContainersGridContainers",
"blockElementsInNormalFlow",
"blockLevelElements",
Expand Down Expand Up @@ -242,7 +243,11 @@
"limitedSVGElementsCircle",
"limitedSVGElementsEllipse",
"limitedSVGElementsEllipseRect",
"limitedSVGElementsFilterPrimitives",
"limitedSVGElementsGeometry",
"limitedSVGElementsGraphics",
"limitedSVGElementsGraphicsAndUse",
"limitedSVGElementsTextContent",
"listItems",
"maskElements",
"multicolElements",
Expand Down
15 changes: 15 additions & 0 deletions l10n/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@
"en-US": "Block-containers, flex containers, and grid containers",
"ja": "ブロックコンテナー, フレックスコンテナー, グリッドコンテナー"
},
"blockContainersFlexContainersGridContainersInlineBoxesTableRowsSVGTextContentElements": {
"en-US": "Block-containers, flex containers, grid containers, inline boxes, table rows, and SVG text content elements"
},
"blockContainersMultiColumnContainersFlexContainersGridContainers": {
"en-US": "Block-containers, multi-column containers, flex containers"
},
Expand Down Expand Up @@ -971,6 +974,18 @@
"limitedSVGElementsEllipseRect": {
"en-US": "{{SVGElement(\"ellipse\")}} and {{SVGElement(\"rect\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsFilterPrimitives": {
"en-US": "The set of elements that control the output of a {{SVGElement(\"filter\")}} element in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsGraphics": {
"en-US": "{{SVGElement(\"circle\")}}, {{SVGElement(\"ellipse\")}}, {{SVGElement(\"foreignObject\")}}, {{SVGElement(\"image\")}}, {{SVGElement(\"line\")}}, {{SVGElement(\"path\")}}, {{SVGElement(\"polygon\")}}, {{SVGElement(\"polyline\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}}, and {{SVGElement(\"tspan\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsGraphicsAndUse": {
"en-US": "{{SVGElement(\"circle\")}}, {{SVGElement(\"ellipse\")}}, {{SVGElement(\"foreignObject\")}}, {{SVGElement(\"image\")}}, {{SVGElement(\"line\")}}, {{SVGElement(\"path\")}}, {{SVGElement(\"polygon\")}}, {{SVGElement(\"polyline\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"use\")}}, {{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}}, and {{SVGElement(\"tspan\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsTextContent": {
"en-US": "{{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}} , and {{SVGElement(\"tspan\")}} elements in {{SVGElement(\"svg\")}}"
},
"listEachItemConsistingOfAbsoluteLengthPercentageAndOrigin": {
"de": "Eine Liste, bei der jeder Eintrag aus einem Versatz besteht, der durch eine Kombination aus absoluter Länge und einem Prozentsatz plus einem Ursprungsschlüsselwort definiert wird",
"en-US": "A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword",
Expand Down

0 comments on commit 9f5ac08

Please sign in to comment.