LibWeb: Return true for "overflow: auto" from Box::is_scrollable()

is_scrollable() is currently used to determine if box support scroll
user interaction so it should return true for "auto" overflow.
This commit is contained in:
Aliaksandr Kalenik 2023-08-08 15:35:15 +02:00 committed by Andreas Kling
commit 869bef523e
Notes: sideshowbarker 2024-07-17 10:39:39 +09:00

View file

@ -58,7 +58,7 @@ bool Box::is_scroll_container() const
bool Box::is_scrollable() const
{
// FIXME: Support horizontal scroll as well (overflow-x)
return computed_values().overflow_y() == CSS::Overflow::Scroll;
return computed_values().overflow_y() == CSS::Overflow::Scroll || computed_values().overflow_y() == CSS::Overflow::Auto;
}
void Box::set_needs_display()