From 12b698666d5a5170d49e3a853d0e841344084760 Mon Sep 17 00:00:00 2001 From: sb3nder Date: Sat, 9 May 2026 22:06:46 +0200 Subject: [PATCH] feat(css): Update computed for `border/column-rule/outline-width`, `outline-offset` --- css/properties.json | 30 +++++++++++++++--------------- css/properties.schema.json | 1 + l10n/css.json | 3 +++ 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/css/properties.json b/css/properties.json index 48d84e5cd..a4c787417 100644 --- a/css/properties.json +++ b/css/properties.json @@ -1214,7 +1214,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLength", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "nonstandard" }, @@ -1287,7 +1287,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLength", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "nonstandard" }, @@ -1359,7 +1359,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLength", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "nonstandard" }, @@ -1431,7 +1431,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLength", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "nonstandard" }, @@ -2804,7 +2804,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthZeroIfBorderStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/border-block-end-width" @@ -2880,7 +2880,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthZeroIfBorderStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/border-block-start-width" @@ -3050,7 +3050,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthOr0IfBorderBottomStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "alsoAppliesTo": [ "::first-letter" @@ -3405,7 +3405,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthZeroIfBorderStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width" @@ -3481,7 +3481,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthZeroIfBorderStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width" @@ -3613,7 +3613,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthOr0IfBorderLeftStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "alsoAppliesTo": [ "::first-letter" @@ -3735,7 +3735,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthOr0IfBorderRightStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "alsoAppliesTo": [ "::first-letter" @@ -3944,7 +3944,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLengthOr0IfBorderTopStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "alsoAppliesTo": [ "::first-letter" @@ -4582,7 +4582,7 @@ ], "initial": "medium", "appliesto": "multicolElements", - "computed": "absoluteLength0IfColumnRuleStyleNoneOrHidden", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "perGrammar", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/column-rule-width" @@ -8586,7 +8586,7 @@ ], "initial": "0", "appliesto": "allElements", - "computed": "asSpecifiedRelativeToAbsoluteLengths", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/outline-offset" @@ -8624,7 +8624,7 @@ ], "initial": "medium", "appliesto": "allElements", - "computed": "absoluteLength0ForNone", + "computed": "absoluteLengthSnappedAsLineWidth", "order": "uniqueOrder", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/outline-width" diff --git a/css/properties.schema.json b/css/properties.schema.json index 1572ad954..69d054b29 100644 --- a/css/properties.schema.json +++ b/css/properties.schema.json @@ -116,6 +116,7 @@ "absoluteLengthOrNormal", "absoluteLengthOrPercentage", "absoluteLengthOrPercentageNumbersConverted", + "absoluteLengthSnappedAsLineWidth", "absoluteLengthsSpecifiedColorAsSpecified", "absoluteLengthZeroIfBorderStyleNoneOrHidden", "absoluteLengthZeroOrLarger", diff --git a/l10n/css.json b/l10n/css.json index 78ea2ea0f..17e99b317 100644 --- a/l10n/css.json +++ b/l10n/css.json @@ -119,6 +119,9 @@ "en-US": "an absolute {{cssxref(\"length\")}} or {{cssxref(\"percentage\")}}, numbers converted to absolute lengths first", "fr": "une longueur ({{cssxref(\"length\")}}) absolue ou un pourcentage ({{cssxref(\"percentage\")}}), les nombres étant d'abord convertis en longueurs absolues" }, + "absoluteLengthSnappedAsLineWidth": { + "en-US": "the absolute length, snapped as a line width" + }, "absoluteLengthsSpecifiedColorAsSpecified": { "de": "Längen absolut gemacht; angegebene Farben berechnet; ansonsten wie angegeben", "en-US": "any length made absolute; any specified color computed; otherwise as specified",