mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibWeb: Add place-self css property support
This commit is contained in:
parent
f24aab662f
commit
da2cd73bcf
12 changed files with 190 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/PercentageStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PlaceContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PlaceItemsStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PlaceSelfStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PositionStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RatioStyleValue.h>
|
||||
|
@ -325,6 +326,12 @@ PlaceItemsStyleValue const& StyleValue::as_place_items() const
|
|||
return static_cast<PlaceItemsStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PlaceSelfStyleValue const& StyleValue::as_place_self() const
|
||||
{
|
||||
VERIFY(is_place_self());
|
||||
return static_cast<PlaceSelfStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PositionStyleValue const& StyleValue::as_position() const
|
||||
{
|
||||
VERIFY(is_position());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue