Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add marker CSS SVG properties #756

Merged
merged 5 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 164 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 @@ -6698,6 +6746,74 @@
"status": "experimental",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/margin-trim"
},
"marker": {
"syntax": "none | <url>",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": [
"marker-start",
"marker-mid",
"marker-end"
],
"appliesto": "limitedSVGElementsShapes",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/marker"
},
"marker-end": {
"syntax": "none | <url>",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "none",
"appliesto": "limitedSVGElementsShapes",
"computed": "asSpecifiedURLsAbsolute",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/marker-end"
},
"marker-mid": {
"syntax": "none | <url>",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "none",
"appliesto": "limitedSVGElementsShapes",
"computed": "asSpecifiedURLsAbsolute",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/marker-mid"
},
"marker-start": {
"syntax": "none | <url>",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
],
"initial": "none",
"appliesto": "limitedSVGElementsShapes",
"computed": "asSpecifiedURLsAbsolute",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/marker-start"
},
"mask": {
"syntax": "<mask-layer>#",
"media": "visual",
Expand Down Expand Up @@ -9245,6 +9361,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/shape-outside"
},
"shape-rendering": {
"syntax": "auto | optimizeSpeed | crispEdges | geometricPrecision",
"media": "visual",
"inherited": false,
"animationType": "discrete",
"percentages": "no",
"groups": [
"CSS Shapes"
],
"initial": "auto",
"appliesto": "limitedSVGElementsShapes",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/shape-rendering"
},
"tab-size": {
"syntax": "<integer> | <length>",
"media": "visual",
Expand Down Expand Up @@ -9312,6 +9444,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 +10213,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": "none",
"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
6 changes: 6 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,12 @@
"limitedSVGElementsCircle",
"limitedSVGElementsEllipse",
"limitedSVGElementsEllipseRect",
"limitedSVGElementsFilterPrimitives",
"limitedSVGElementsGeometry",
"limitedSVGElementsGraphics",
"limitedSVGElementsGraphicsAndUse",
"limitedSVGElementsShapes",
"limitedSVGElementsTextContent",
"listItems",
"maskElements",
"multicolElements",
Expand Down
18 changes: 18 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,21 @@
"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\")}}"
},
"limitedSVGElementsShapes": {
"en-US": "{{SVGElement(\"circle\")}}, {{SVGElement(\"ellipse\")}}, {{SVGElement(\"line\")}}, {{SVGElement(\"path\")}}, {{SVGElement(\"polygon\")}}, {{SVGElement(\"polyline\")}}, and {{SVGElement(\"rect\")}} 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
Loading