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(css): Add data for lighting-color, flood-color, flood-opacity #787

Merged
merged 8 commits into from
Dec 5, 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
50 changes: 49 additions & 1 deletion css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4150,7 +4150,7 @@
"animationType": "discrete",
"percentages": "no",
"groups": [
"Scalable Vector Graphics"
"Filter Effects"
],
"initial": "linearRGB",
"appliesto": "limitedSVGElementsFilterPrimitives",
Expand Down Expand Up @@ -4961,6 +4961,38 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/float"
},
"flood-color": {
"syntax": "<color>",
"media": "visual",
"inherited": false,
"animationType": "byComputedValue",
"percentages": "no",
"groups": [
"Filter Effects"
],
"initial": "black",
"appliesto": "limitedSVGElementsFloodAndDropShadow",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/flood-color"
},
"flood-opacity": {
"syntax": "<'opacity'>",
"media": "visual",
"inherited": false,
"animationType": "byComputedValue",
"percentages": "no",
"groups": [
"Filter Effects"
],
"initial": "black",
"appliesto": "limitedSVGElementsFloodAndDropShadow",
"computed": "specifiedValueClipped0To1",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/flood-opacity"
},
"font": {
"syntax": "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",
"media": "visual",
Expand Down Expand Up @@ -6436,6 +6468,22 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/letter-spacing"
},
"lighting-color": {
"syntax": "<color>",
"media": "visual",
"inherited": false,
"animationType": "byComputedValue",
"percentages": "no",
"groups": [
"Filter Effects"
],
"initial": "white",
"appliesto": "limitedSVGElementsLightSource",
"computed": "asSpecified",
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/lighting-color"
},
"line-break": {
"syntax": "auto | loose | normal | strict | anywhere",
"media": "visual",
Expand Down
3 changes: 3 additions & 0 deletions css/properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"angleBasicShapeOrPath",
"angleOrBasicShapeOrPath",
"basicShapeOtherwiseNo",
"byComputedValue",
"byComputedValueType",
"byComputedValueTypeNormalAnimatesAsObliqueZeroDeg",
"color",
Expand Down Expand Up @@ -250,9 +251,11 @@
"limitedSVGElementsEllipse",
"limitedSVGElementsEllipseRect",
"limitedSVGElementsFilterPrimitives",
"limitedSVGElementsFloodAndDropShadow",
"limitedSVGElementsGeometry",
"limitedSVGElementsGraphics",
"limitedSVGElementsGraphicsAndUse",
"limitedSVGElementsLightSource",
"limitedSVGElementsPath",
"limitedSVGElementsShapes",
"limitedSVGElementsShapesAndTextContent",
Expand Down
25 changes: 17 additions & 8 deletions l10n/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@
"ru": "блочные элементы",
"zh-CN": "盒元素"
},
"byComputedValue": {
"en-US": "by computed value"
},
"byComputedValueType": {
"en-US": "by computed value type",
"ja": "計算値の型による",
Expand Down Expand Up @@ -978,34 +981,40 @@
"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 <code>svg</code>"
},
"limitedSVGElementsPath": {
"en-US": "{{SVGElement(\"path\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsShapeText": {
"en-US": "SVG shapes and text content elements"
"en-US": "{{SVGElement(\"svg\")}}, {{SVGElement(\"rect\")}}, {{SVGElement(\"image\")}}, and {{SVGElement(\"foreignObject\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsFilterPrimitives": {
"en-US": "The set of elements that control the output of a {{SVGElement(\"filter\")}} element in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsFloodAndDropShadow": {
"en-US": "{{SVGElement(\"feFlood\")}} and {{SVGElement(\"feDropShadow\")}} elements 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\")}}"
},
"limitedSVGElementsLightSource": {
"en-US": "{{SVGElement(\"feDiffuseLighting\")}} and {{SVGElement(\"feSpecularLighting\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsPath": {
"en-US": "{{SVGElement(\"path\")}} element in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsShapes": {
"en-US": "{{SVGElement(\"circle\")}}, {{SVGElement(\"ellipse\")}}, {{SVGElement(\"line\")}}, {{SVGElement(\"path\")}}, {{SVGElement(\"polygon\")}}, {{SVGElement(\"polyline\")}}, and {{SVGElement(\"rect\")}} elements in an <code>svg</code>"
},
"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 <code>svg</code>"
},
"limitedSVGElementsShapeText": {
"en-US": "SVG shapes and text content elements"
},
"limitedSVGElementsStop": {
"en-US": "{{SVGElement(\"stop\")}} elements in {{SVGElement(\"svg\")}}"
},
"limitedSVGElementsTextContent": {
"en-US": "{{SVGElement(\"text\")}}, {{SVGElement(\"textPath\")}}, and {{SVGElement(\"tspan\")}} elements in an <code>svg</code>"
"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",
Expand Down
Loading