LibWeb: Add transform-style and have it make a stacking context

This commit is contained in:
Psychpsyo 2025-11-11 17:08:51 +01:00 committed by Jelle Raaijmakers
parent c80b698589
commit e064fa19d2
Notes: github-actions[bot] 2025-11-12 14:48:50 +00:00
13 changed files with 89 additions and 3 deletions

View file

@ -756,6 +756,12 @@ TransformOrigin ComputedProperties::transform_origin() const
return { x_value, y_value, z_value };
}
TransformStyle ComputedProperties::transform_style() const
{
auto const& value = property(PropertyID::TransformStyle);
return keyword_to_transform_style(value.to_keyword()).release_value();
}
Optional<Color> ComputedProperties::accent_color(Layout::NodeWithStyle const& node) const
{
auto const& value = property(PropertyID::AccentColor);