From 22130975d32d59d550a193b5d71365bc4bc00761 Mon Sep 17 00:00:00 2001 From: Gusted Date: Fri, 18 Oct 2024 17:08:03 +0200 Subject: [PATCH] feat: update `text-wrap` to be a shorthand property (#774) Specification: https://drafts.csswg.org/css-text-4/#propdef-text-wrap. Make `text-wrap` a shorthand property of `text-wrap-mode` and `text-wrap-style`. Pratically this will mean `text-wrap: auto` is valid. --- css/properties.json | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/css/properties.json b/css/properties.json index b8d2ab16..7e0ac04e 100644 --- a/css/properties.json +++ b/css/properties.json @@ -10104,17 +10104,23 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-underline-position" }, "text-wrap": { - "syntax": "wrap | nowrap | balance | stable | pretty", + "syntax": "<'text-wrap-mode> || <'text-wrap-style'>", "media": "visual", "inherited": true, - "animationType": "discrete", + "animationType": [ + "text-wrap-mode", + "text-wrap-style" + ], "percentages": "no", "groups": [ "CSS Text" ], "initial": "wrap", "appliesto": "textAndBlockContainers", - "computed": "asSpecified", + "computed": [ + "text-wrap-mode", + "text-wrap-style" + ], "order": "perGrammar", "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-wrap"