1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibWeb: Resolve CSS transform lengths against padding rect

Fixes https://github.com/SerenityOS/serenity/issues/22797
This commit is contained in:
Aliaksandr Kalenik 2024-01-16 20:07:10 +01:00 committed by Andreas Kling
parent ef0c390b79
commit f529188fb8
3 changed files with 24 additions and 1 deletions

View file

@ -45,7 +45,7 @@ ErrorOr<Gfx::FloatMatrix4x4> Transformation::to_matrix(Optional<Painting::Painta
CSSPixels width = 1;
CSSPixels height = 1;
if (paintable_box.has_value()) {
auto reference_box = paintable_box->absolute_rect();
auto reference_box = paintable_box->absolute_padding_box_rect();
width = reference_box.width();
height = reference_box.height();
}