LibWeb: Add several computed CSS styles

These are mostly combined styles such as background, as well as handling
the Invalid and Custom property IDs (which both make no sense).
This commit is contained in:
kleines Filmröllchen 2021-09-14 00:38:46 +02:00 committed by Andreas Kling
commit 047c013be0
Notes: sideshowbarker 2024-07-18 03:57:45 +09:00
2 changed files with 69 additions and 5 deletions

View file

@ -689,7 +689,7 @@ public:
virtual String to_string() const override
{
return String::formatted("Background color: {}, image: {}, repeat: {}/{}", m_color->to_string(), m_image->to_string(), m_repeat_x->to_string(), m_repeat_y->to_string());
return String::formatted("{} {} {} {}", m_color->to_string(), m_image->to_string(), m_repeat_x->to_string(), m_repeat_y->to_string());
}
private: