LibWeb: Support percentage attributes on SVG rect element

This makes the IMDb logo have a yellow background as expected.
This commit is contained in:
Andreas Kling 2025-09-28 12:40:14 +02:00 committed by Andreas Kling
parent 99dd648475
commit d36e5098f8
Notes: github-actions[bot] 2025-09-28 17:26:28 +00:00
6 changed files with 58 additions and 41 deletions

View file

@ -34,14 +34,14 @@ private:
virtual void initialize(JS::Realm&) override;
Gfx::FloatSize calculate_used_corner_radius_values() const;
Gfx::FloatSize calculate_used_corner_radius_values(CSSPixelSize viewport_size) const;
Optional<float> m_x;
Optional<float> m_y;
Optional<float> m_width;
Optional<float> m_height;
Optional<float> m_radius_x;
Optional<float> m_radius_y;
Optional<NumberPercentage> m_x;
Optional<NumberPercentage> m_y;
Optional<NumberPercentage> m_width;
Optional<NumberPercentage> m_height;
Optional<NumberPercentage> m_radius_x;
Optional<NumberPercentage> m_radius_y;
};
}