From 67b7b8cda5a3dece3c5ffc0dae015f94a5306916 Mon Sep 17 00:00:00 2001 From: Chris Mills Date: Mon, 11 Sep 2023 09:14:13 +0100 Subject: [PATCH] Fix descriptions of animation behavior between visible and hidden --- css/properties.json | 6 +++--- css/properties.schema.json | 5 ++--- l10n/css.json | 11 ++++------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/css/properties.json b/css/properties.json index 931253e4..e26c2dc1 100644 --- a/css/properties.json +++ b/css/properties.json @@ -4483,7 +4483,7 @@ "syntax": "visible | auto | hidden", "media": "all", "inherited": false, - "animationType": "discreteHiddenSwapAt0", + "animationType": "discreteButVisibleForDurationWhenAnimatedHidden", "percentages": "no", "groups": [ "CSS Containment" @@ -4582,7 +4582,7 @@ "syntax": "[ || ] | | | | ", "media": "all", "inherited": false, - "animationType": "discreteNoneSwapAt0", + "animationType": "discreteButVisibleForDurationWhenAnimatedNone", "percentages": "no", "groups": [ "CSS Display" @@ -7598,7 +7598,7 @@ "syntax": "none | auto", "media": "visual", "inherited": false, - "animationType": "discreteSwapAt1", + "animationType": "discreteButVisibleForDurationWhenAnimatedNone", "percentages": "no", "groups": [ "CSS Positioning" diff --git a/css/properties.schema.json b/css/properties.schema.json index b0ca37a1..6fbb4a43 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -21,9 +21,8 @@ "byComputedValueTypeNormalAnimatesAsObliqueZeroDeg", "color", "discrete", - "discreteHiddenSwapAt0", - "discreteNoneSwapAt0", - "discreteSwapAt1", + "discreteButVisibleForDurationWhenAnimatedHidden", + "discreteButVisibleForDurationWhenAnimatedNone", "eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection", "filterList", "fontStretch", diff --git a/l10n/css.json b/l10n/css.json index 7d1401b0..6da9ecf7 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -654,14 +654,11 @@ "fr": "discrète", "ja": "離散値" }, - "discreteHiddenSwapAt0": { - "en-US": "Discrete behavior but when animating from hidden swaps to end value at progress > 0 rather than 0.5" + "discreteButVisibleForDurationWhenAnimatedHidden": { + "en-US": "Discrete behavior except when animating to or from hidden is visible for the entire duration" }, - "discreteNoneSwapAt0": { - "en-US": "Discrete behavior but when animating from none swaps to end value at progress > 0 rather than 0.5" - }, - "discreteSwapAt1": { - "en-US": "Discrete behavior but swaps to end value at progress 1 rather than 0.5" + "discreteButVisibleForDurationWhenAnimatedNone": { + "en-US": "Discrete behavior except when animating to or from none is visible for the entire duration" }, "eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection": { "de": "wie jede der Kurzschreibweisen Eigenschaften (alle Eigenschaften außer {{cssxref(\"unicode-bidi\")}} und {{cssxref(\"direction\")}})",