mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Support percentage attributes on SVG rect element
This makes the IMDb logo have a yellow background as expected.
This commit is contained in:
parent
99dd648475
commit
d36e5098f8
Notes:
github-actions[bot]
2025-09-28 17:26:28 +00:00
Author: https://github.com/awesomekling
Commit: d36e5098f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6332
6 changed files with 58 additions and 41 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue