1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:27:45 +00:00

LibWeb/CSS: Add "text" into list of possible "background-box" values

This commit is contained in:
Zac Brannelly 2024-03-03 14:13:27 +01:00 committed by Alexander Kalenik
parent 0c18450c4f
commit 4a3680cafc
2 changed files with 4 additions and 1 deletions

View file

@ -80,7 +80,8 @@
"background-box": [ "background-box": [
"border-box", "border-box",
"content-box", "content-box",
"padding-box" "padding-box",
"text"
], ],
"border-collapse": [ "border-collapse": [
"separate", "separate",

View file

@ -392,6 +392,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
return CSS::BackgroundBox::ContentBox; return CSS::BackgroundBox::ContentBox;
case CSS::ValueID::PaddingBox: case CSS::ValueID::PaddingBox:
return CSS::BackgroundBox::PaddingBox; return CSS::BackgroundBox::PaddingBox;
case CSS::ValueID::Text:
return CSS::BackgroundBox::Text;
default: default:
VERIFY_NOT_REACHED(); VERIFY_NOT_REACHED();
} }