mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Add support for parsing place-content shorthand CSS property
This commit is contained in:
parent
23be1c5482
commit
dcead6f5eb
Notes:
sideshowbarker
2024-07-17 09:39:38 +09:00
Author: https://github.com/FalseHonesty
Commit: dcead6f5eb
Pull-request: https://github.com/SerenityOS/serenity/pull/19134
12 changed files with 139 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/NumericStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/OverflowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PercentageStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PlaceContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PositionStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RectStyleValue.h>
|
||||
|
@ -295,6 +296,12 @@ PercentageStyleValue const& StyleValue::as_percentage() const
|
|||
return static_cast<PercentageStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PlaceContentStyleValue const& StyleValue::as_place_content() const
|
||||
{
|
||||
VERIFY(is_place_content());
|
||||
return static_cast<PlaceContentStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PositionStyleValue const& StyleValue::as_position() const
|
||||
{
|
||||
VERIFY(is_position());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue