1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Handle calculated vertical-align

This commit is contained in:
stelar7 2023-06-17 00:09:41 +02:00 committed by Andreas Kling
parent c476ff10a5
commit 4436ab0cb1

View file

@ -819,6 +819,9 @@ Variant<CSS::VerticalAlign, CSS::LengthPercentage> StyleProperties::vertical_ali
if (value->is_percentage())
return CSS::LengthPercentage(value->as_percentage().percentage());
if (value->is_calculated())
return LengthPercentage { const_cast<CalculatedStyleValue&>(value->as_calculated()) };
VERIFY_NOT_REACHED();
}