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(); }