Skip to content

Commit

Permalink
LibWeb/CSS: Add "text" into list of possible "background-box" values
Browse files Browse the repository at this point in the history
  • Loading branch information
zacbrannelly authored and kalenikaliaksandr committed Mar 3, 2024
1 parent 0c18450 commit 4a3680c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Userland/Libraries/LibWeb/CSS/Enums.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"background-box": [
"border-box",
"content-box",
"padding-box"
"padding-box",
"text"
],
"border-collapse": [
"separate",
Expand Down
2 changes: 2 additions & 0 deletions Userland/Libraries/LibWeb/Layout/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4a3680c

Please sign in to comment.