From 4a3680cafc436fa06a6d5c0a43fa00819ec45c82 Mon Sep 17 00:00:00 2001 From: Zac Brannelly Date: Sun, 3 Mar 2024 14:13:27 +0100 Subject: [PATCH] LibWeb/CSS: Add "text" into list of possible "background-box" values --- Userland/Libraries/LibWeb/CSS/Enums.json | 3 ++- Userland/Libraries/LibWeb/Layout/Node.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Enums.json b/Userland/Libraries/LibWeb/CSS/Enums.json index fc1f143e7e..64579bbefe 100644 --- a/Userland/Libraries/LibWeb/CSS/Enums.json +++ b/Userland/Libraries/LibWeb/CSS/Enums.json @@ -80,7 +80,8 @@ "background-box": [ "border-box", "content-box", - "padding-box" + "padding-box", + "text" ], "border-collapse": [ "separate", diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index a3f55a6dbe..a78adcd937 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -392,6 +392,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style) return CSS::BackgroundBox::ContentBox; case CSS::ValueID::PaddingBox: return CSS::BackgroundBox::PaddingBox; + case CSS::ValueID::Text: + return CSS::BackgroundBox::Text; default: VERIFY_NOT_REACHED(); }