mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibWeb: Don't treat calc() in used flex basis as definite for now
We'll eventually need some way to determine if a calc() value results in a definite size.
This commit is contained in:
parent
7200b3a16c
commit
71ec46b8cc
1 changed files with 4 additions and 0 deletions
|
@ -665,6 +665,10 @@ void FlexFormattingContext::determine_flex_base_size_and_hypothetical_main_size(
|
|||
return false;
|
||||
if (flex_basis.length_percentage->is_length())
|
||||
return true;
|
||||
if (flex_basis.length_percentage->is_calculated()) {
|
||||
// FIXME: Handle calc() in used flex basis.
|
||||
return false;
|
||||
}
|
||||
if (is_row_layout())
|
||||
return m_flex_container_state.has_definite_width();
|
||||
return m_flex_container_state.has_definite_height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue