From 5af161e6eac3e97abac4d1dc5249e2168f434699 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 11 Jul 2025 12:23:52 +0800 Subject: [PATCH 1/2] Remove broken links in CSS data --- css/properties.json | 18 +----------------- css/properties.schema.json | 3 +-- l10n/css.json | 25 +++++-------------------- 3 files changed, 7 insertions(+), 39 deletions(-) diff --git a/css/properties.json b/css/properties.json index caede4b0..7eb4782c 100644 --- a/css/properties.json +++ b/css/properties.json @@ -911,22 +911,6 @@ "status": "nonstandard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-force-broken-image-icon" }, - "-moz-image-region": { - "syntax": " | auto", - "media": "visual", - "inherited": true, - "animationType": "discrete", - "percentages": "no", - "groups": [ - "Mozilla Extensions" - ], - "initial": "auto", - "appliesto": "xulImageElements", - "computed": "asSpecified", - "order": "uniqueOrder", - "status": "nonstandard", - "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-moz-image-region" - }, "-moz-orient": { "syntax": "inline | block | horizontal | vertical", "media": "visual", @@ -3848,7 +3832,7 @@ "Mozilla Extensions", "WebKit Extensions" ], - "initial": "inlineAxisHorizontalInXUL", + "initial": "inline-axis", "appliesto": "elementsWithDisplayBoxOrInlineBox", "computed": "asSpecified", "order": "uniqueOrder", diff --git a/css/properties.schema.json b/css/properties.schema.json index 8699a613..9b809d0b 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -299,8 +299,7 @@ "textAndSVGShapes", "textElements", "textFields", - "transformableElements", - "xulImageElements" + "transformableElements" ] }, "alsoApplyTo": { diff --git a/l10n/css.json b/l10n/css.json index 22300fae..04a5bfcb 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -713,11 +713,11 @@ "ru": "зависит от браузера" }, "directChildrenOfElementsWithDisplayMozBoxMozInlineBox": { - "de": "Elemente, die direkte Kinder eines Elements mit einem CSS {{cssxref(\"display\")}} Wert von {{cssxref(\"-moz-box\")}} oder {{cssxref(\"-moz-inline-box\")}} oder {{cssxref(\"-webkit-box\")}} oder {{cssxref(\"-webkit-inline-box\")}} sind", - "en-US": "elements that are direct children of an element with a CSS {{cssxref(\"display\")}} value of {{cssxref(\"-moz-box\")}} or {{cssxref(\"-moz-inline-box\")}} or {{cssxref(\"-webkit-box\")}} or {{cssxref(\"-webkit-inline-box\")}}", - "fr": "éléments qui sont des fils direct d'un élément avec {{cssxref(\"display\")}} qui vaut {{cssxref(\"-moz-box\")}} ou {{cssxref(\"-moz-inline-box\")}} ou {{cssxref(\"-webkit-box\")}} ou {{cssxref(\"-webkit-inline-box\")}}", - "ja": "CSS の {{cssxref(\"display\")}} の値が {{cssxref(\"-moz-box\")}}, {{cssxref(\"-moz-inline-box\")}}, {{cssxref(\"-webkit-box\")}}, {{cssxref(\"-webkit-inline-box\")}} のいずれかである要素の直接の子要素", - "ru": "элементы, являющиеся прямыми потомками элемента со свойством {cssxref(\"display\")}} равным {{cssxref(\"-moz-box\")}}, {{cssxref(\"-moz-inline-box\")}}, {{cssxref(\"-webkit-box\")}} или {{cssxref(\"-webkit-inline-box\")}}" + "de": "Elemente, die direkte Kinder eines Elements mit einem CSS {{cssxref(\"display\")}} Wert von -moz-box oder -moz-inline-box oder -webkit-box oder -webkit-inline-box sind", + "en-US": "elements that are direct children of an element with a CSS {{cssxref(\"display\")}} value of -moz-box or -moz-inline-box or -webkit-box or -webkit-inline-box", + "fr": "éléments qui sont des fils direct d'un élément avec {{cssxref(\"display\")}} qui vaut -moz-box ou -moz-inline-box ou -webkit-box ou -webkit-inline-box", + "ja": "CSS の {{cssxref(\"display\")}} の値が -moz-box, -moz-inline-box, -webkit-box, -webkit-inline-box のいずれかである要素の直接の子要素", + "ru": "элементы, являющиеся прямыми потомками элемента со свойством {cssxref(\"display\")}} равным -moz-box, -moz-inline-box, -webkit-box или -webkit-inline-box" }, "discrete": { "de": "diskret", @@ -910,13 +910,6 @@ "ja": "フロー内のボックス要素の子", "ru": "потомки блочных элементов в потоке" }, - "inlineAxisHorizontalInXUL": { - "de": "inline-axis (horizontal in XUL)", - "en-US": "inline-axis (horizontal in XUL)", - "fr": "inline-axis (horizontal en XUL)", - "ja": "inline-axis (XUL における horizontal)", - "ru": "inline-axis (horizontal в XUL)" - }, "inlineBoxesAndBlockContainers": { "en-US": "Inline boxes and block containers" }, @@ -1902,14 +1895,6 @@ "ru": "visual, но в сплошной среде, не имеет никакого эффекта при переполнении колонок", "zh-CN": "visual,但在连续媒体中,对溢出的列没有影响" }, - "xulImageElements": { - "de": "XUL {{XULElem(\"image\")}} Elementen und {{cssxref(\":-moz-tree-image\")}}, {{cssxref(\":-moz-tree-twisty\")}} und {{cssxref(\":-moz-tree-checkbox\")}} Pseudoelementen. Hinweis: -moz-image-region funktioniert nur mit {{XULElem(\"image\")}} Elementen, bei denen das Symbol durch {{cssxref(\"list-style-image\")}} angegeben wird. Es funktioniert nicht mit XUL <image src=\"url\" />.", - "en-US": "XUL {{XULElem(\"image\")}} elements and {{cssxref(\":-moz-tree-image\")}}, {{cssxref(\":-moz-tree-twisty\")}}, and {{cssxref(\":-moz-tree-checkbox\")}} pseudo-elements. Note: -moz-image-region only works with {{XULElem(\"image\")}} elements where the icon is specified using {{cssxref(\"list-style-image\")}}. It will not work with XUL <image src=\"url\" />.", - "fr": "éléments XUL {{XULElem(\"image\")}} et aux pseudo-éléments {{cssxref(\":-moz-tree-image\")}}, {{cssxref(\":-moz-tree-twisty\")}} et {{cssxref(\":-moz-tree-checkbox\")}}. Note : -moz-image-region ne fonctionnera qu'avec les éléments {{XULElem(\"image\")}} où l'icône est définie avec {{cssxref(\"list-style-image\")}}. Cela ne fonctionnera pas avec l'<image src=\"url\" /> XUL.", - "ja": "XUL の {{XULElem(\"image\")}} 要素と {{cssxref(\":-moz-tree-image\")}}, {{cssxref(\":-moz-tree-twisty\")}}, {{cssxref(\":-moz-tree-checkbox\")}} の各擬似要素。 注: -moz-image-region はアイコンが {{cssxref(\"list-style-image\")}} を使用して指定された {{XULElem(\"image\")}} 要素でしか機能しません。 XUL の <image src=\"url\" /> では機能しません。", - "ru": "XUL {{XULElem(\"image\")}} элементы и {{cssxref(\":-moz-tree-image\")}}, {{cssxref(\":-moz-tree-twisty\")}} и {{cssxref(\":-moz-tree-checkbox\")}} псевдоэлементы. Заметьте: -moz-image-region работает только с элементами {{XULElem(\"image\")}}, где иконка определяется использованием {{cssxref(\"list-style-image\")}}. Это не будет работать с XUL <image src=\"url\" />.", - "zh-CN": "XUL {{XULElem(\"image\")}} 元素以及 {{cssxref(\":-moz-tree-image\")}}、{{cssxref(\":-moz-tree-twisty\")}} 和 {{cssxref(\":-moz-tree-checkbox\")}} 伪元素。注意:-moz-image-region 属性仅适用于通过 {{cssxref(\"list-style-image\")}} 来指定图标的 XUL {{XULElem(\"image\")}} 元素。它不适用于 XUL 标签为 <image src=\"url\" /> 的元素。" - }, "yes": { "de": "Ja", "en-US": "yes", From 4527c015b75940f80d164c9d607fff827768f38d Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Fri, 11 Jul 2025 14:59:29 +0800 Subject: [PATCH 2/2] Fix more --- css/properties.json | 4 ++-- css/properties.schema.json | 2 -- l10n/css.json | 14 -------------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/css/properties.json b/css/properties.json index 7eb4782c..2964e189 100644 --- a/css/properties.json +++ b/css/properties.json @@ -5184,7 +5184,7 @@ "syntax": "", "media": "visual", "inherited": true, - "animationType": "fontStretch", + "animationType": "byComputedValueType", "percentages": "no", "groups": [ "CSS Fonts" @@ -5520,7 +5520,7 @@ "syntax": " | bolder | lighter", "media": "visual", "inherited": true, - "animationType": "fontWeight", + "animationType": "byComputedValueType", "percentages": "no", "groups": [ "CSS Fonts" diff --git a/css/properties.schema.json b/css/properties.schema.json index 9b809d0b..9d1d7eec 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -27,8 +27,6 @@ "discreteButVisibleForDurationWhenAnimatedNone", "eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection", "filterList", - "fontStretch", - "fontWeight", "integer", "length", "lpc", diff --git a/l10n/css.json b/l10n/css.json index 04a5bfcb..dade51d9 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -834,20 +834,6 @@ "ru": "плавает", "zh-CN": "浮动元素" }, - "fontStretch": { - "de": "Schriftbreite", - "en-US": "a font stretch", - "fr": "une font stretch", - "ja": "フォントの伸長値", - "ru": "ширина начертания шрифта" - }, - "fontWeight": { - "de": "Schriftgewichtung", - "en-US": "a font weight", - "fr": "une graisse de police", - "ja": "フォントの太さ", - "ru": "жирность шрифта" - }, "forLengthAbsoluteValueOtherwisePercentage": { "de": "for {{cssxref(\"length\")}} the absolute value, otherwise a percentage", "en-US": "for {{cssxref(\"length\")}} the absolute value, otherwise a percentage",