mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibWeb: Handle calculated vertical-align
This commit is contained in:
parent
c476ff10a5
commit
4436ab0cb1
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue