LibWeb: Fix incomplete plumbing for individual rotate CSS property

This commit is contained in:
Andreas Kling 2024-11-22 16:11:33 +01:00 committed by Andreas Kling
commit 6836d4edb1
Notes: github-actions[bot] 2024-11-22 19:07:55 +00:00
5 changed files with 27 additions and 5 deletions

View file

@ -129,7 +129,14 @@ public:
return m_overflow_data->has_scrollable_overflow;
}
bool has_css_transform() const { return computed_values().transformations().size() > 0; }
[[nodiscard]] bool has_css_transform() const
{
if (!computed_values().transformations().is_empty())
return true;
if (computed_values().rotate().has_value())
return true;
return false;
}
[[nodiscard]] Optional<CSSPixelRect> scrollable_overflow_rect() const
{