mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
LibWeb: Parse calc() function in grid sizes
Adds missing part of grid size parsing function to handle calc().
This commit is contained in:
committed by
Andreas Kling
parent
7fee05e18c
commit
c2f6ba8f5f
@@ -48,6 +48,9 @@ Size GridSize::css_size() const
|
||||
return CSS::Size::make_auto();
|
||||
if (m_length_percentage.is_length())
|
||||
return CSS::Size::make_length(m_length_percentage.length());
|
||||
if (m_length_percentage.is_calculated()) {
|
||||
return CSS::Size::make_calculated(m_length_percentage.calculated());
|
||||
}
|
||||
return CSS::Size::make_percentage(m_length_percentage.percentage());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user