From 5c57b10e4152f44ee3fe631a665666c0cd98fdc8 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Mon, 24 Feb 2025 20:06:55 +0800 Subject: [PATCH] feat(css): Update synatx for css `zoom` property (#901) --- css/properties.json | 10 +++++----- css/properties.schema.json | 2 ++ l10n/css.json | 6 ++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/css/properties.json b/css/properties.json index ab311fcc3..c5f918fcb 100644 --- a/css/properties.json +++ b/css/properties.json @@ -10854,18 +10854,18 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/z-index" }, "zoom": { - "syntax": "normal | reset | | ", + "syntax": "normal | reset | || ", "media": "visual", "inherited": false, "animationType": "notAnimatable", - "percentages": "no", + "percentages": "convertedToNumber", "groups": [ "CSS Viewport" ], - "initial": "normal", + "initial": "1", "appliesto": "allElements", - "computed": "asSpecified", - "order": "uniqueOrder", + "computed": "asSpecifiedButWithPercentageConvertedToTheEquivalentNumber", + "order": "perGrammar", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/zoom" } diff --git a/css/properties.schema.json b/css/properties.schema.json index 5a1d41a8a..341084b1e 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -47,6 +47,7 @@ "percentages": { "enum": [ "blockSizeOfContainingBlock", + "convertedToNumber", "dependsOnLayoutModel", "inlineSizeOfContainingBlock", "lengthsAsPercentages", @@ -126,6 +127,7 @@ "asSpecified", "asSpecifiedAppliesToEachProperty", "asSpecifiedButVisibleOrClipReplacedToAutoOrHiddenIfOtherValueDifferent", + "asSpecifiedButWithPercentageConvertedToTheEquivalentNumber", "asSpecifiedExceptMatchParent", "asSpecifiedExceptPositionedFloatingAndRootElementsKeywordMaybeDifferent", "asSpecifiedRelativeToAbsoluteLengths", diff --git a/l10n/css.json b/l10n/css.json index d7f374a0d..ef50cbdd2 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -431,6 +431,9 @@ "ca": "com s'especifica, excepte que si {{cssxref(\"overflow-x\")}} o bé {{cssxref(\"overflow-y\")}} són diferents de visible o clip, aquests dos valors computen a auto o hidden respectivament", "ja": "指定通り、ただし {{cssxref(\"overflow-x\")}} と {{cssxref(\"overflow-y\")}} のどちらかが visible でも clip でもない場合は、 visible/clip はそれぞれ auto/hidden と計算される" }, + "asSpecifiedButWithPercentageConvertedToTheEquivalentNumber": { + "en-US": "as specified, but with {{cssxref(\"<percentage>\")}} converted to the equivalent {{cssxref(\"<number>\")}}" + }, "asSpecifiedExceptMatchParent": { "de": "wie angegeben, außer für den match-parent Wert, welcher in Bezug auf den direction Wert des Elternelements berechnet wird und einen berechneten Wert von left oder right ergibt", "en-US": "as specified, except for the match-parent value which is calculated against its parent's direction value and results in a computed value of either left or right", @@ -682,6 +685,9 @@ "ja": "連続メディア", "ru": "продолжительный" }, + "convertedToNumber": { + "en-US": "Converted to {{cssxref(\"<number>\")}}" + }, "createsStackingContext": { "de": "Erstellt Stapelkontext", "en-US": "Creates stacking context",