mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibWeb: Add support for "place-items" CSS property
Adds support for place-items property which allows to specify both align-items and justify-items in a single declaration.
This commit is contained in:
parent
a74c56bc1b
commit
a8587fe54e
12 changed files with 135 additions and 0 deletions
|
@ -50,6 +50,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/OverflowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PercentageStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PlaceContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PlaceItemsStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PositionStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RatioStyleValue.h>
|
||||
|
@ -318,6 +319,12 @@ PlaceContentStyleValue const& StyleValue::as_place_content() const
|
|||
return static_cast<PlaceContentStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PlaceItemsStyleValue const& StyleValue::as_place_items() const
|
||||
{
|
||||
VERIFY(is_place_items());
|
||||
return static_cast<PlaceItemsStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PositionStyleValue const& StyleValue::as_position() const
|
||||
{
|
||||
VERIFY(is_position());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue