mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Add BackgroundSizeStyleValue
There's nothing really background-size-specific about this, but since there is no `<size>` value type defined in the CSS spec at this time, and background-size is the only user of it, I think this name makes more sense. But I'm not 100% convinced.
This commit is contained in:
parent
891dd46a17
commit
ae2a3bf185
3 changed files with 40 additions and 0 deletions
|
@ -37,6 +37,12 @@ BackgroundRepeatStyleValue const& StyleValue::as_background_repeat() const
|
|||
return static_cast<BackgroundRepeatStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
BackgroundSizeStyleValue const& StyleValue::as_background_size() const
|
||||
{
|
||||
VERIFY(is_background_size());
|
||||
return static_cast<BackgroundSizeStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
BorderStyleValue const& StyleValue::as_border() const
|
||||
{
|
||||
VERIFY(is_border());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue