1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:28:13 +00:00

LibWeb: Use IdentifierStyleValue for CSS 'position'

This commit is contained in:
Andreas Kling 2020-12-14 18:47:00 +01:00
parent 3247ea3581
commit dd2e8b7dd0
6 changed files with 38 additions and 15 deletions

View file

@ -219,7 +219,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
{
auto& style = static_cast<MutableLayoutStyle&>(m_style);
style.set_position(specified_style.position());
auto position = specified_style.position();
if (position.has_value())
style.set_position(position.value());
auto text_align = specified_style.text_align();
if (text_align.has_value())