mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:57:34 +00:00
LibWeb/CSS: Add "text" into list of possible "background-box" values
This commit is contained in:
parent
0c18450c4f
commit
4a3680cafc
2 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue