From a8d3c077eabc8ae833db5dda38281b9103d9bb09 Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Wed, 24 Jul 2024 20:52:21 +0200 Subject: [PATCH] LibWeb: Add "text-overflow" property to code generation The CSS property "text-overflow" as well as its valid identifiers are added to the relevant json files for code generation --- Userland/Libraries/LibWeb/CSS/Enums.json | 4 ++++ Userland/Libraries/LibWeb/CSS/Identifiers.json | 1 + Userland/Libraries/LibWeb/CSS/Properties.json | 9 +++++++++ 3 files changed, 14 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/Enums.json b/Userland/Libraries/LibWeb/CSS/Enums.json index 59d2d925f69..74fc49c9c00 100644 --- a/Userland/Libraries/LibWeb/CSS/Enums.json +++ b/Userland/Libraries/LibWeb/CSS/Enums.json @@ -369,6 +369,10 @@ "middle", "end" ], + "text-overflow": [ + "clip", + "ellipsis" + ], "scrollbar-gutter": [ "auto", "stable", diff --git a/Userland/Libraries/LibWeb/CSS/Identifiers.json b/Userland/Libraries/LibWeb/CSS/Identifiers.json index cc55d849049..f8bb85149c2 100644 --- a/Userland/Libraries/LibWeb/CSS/Identifiers.json +++ b/Userland/Libraries/LibWeb/CSS/Identifiers.json @@ -141,6 +141,7 @@ "ease-in", "ease-in-out", "ease-out", + "ellipsis", "enabled", "end", "evenodd", diff --git a/Userland/Libraries/LibWeb/CSS/Properties.json b/Userland/Libraries/LibWeb/CSS/Properties.json index 63620977368..1a89a8ecb10 100644 --- a/Userland/Libraries/LibWeb/CSS/Properties.json +++ b/Userland/Libraries/LibWeb/CSS/Properties.json @@ -2559,6 +2559,15 @@ "text-justify" ] }, + "text-overflow": { + "affects-layout": false, + "animation-type": "discrete", + "inherited": false, + "initial": "clip", + "valid-types": [ + "text-overflow" + ] + }, "text-shadow": { "affects-layout": false, "animation-type": "custom",