Truly independent web browser
LibWeb: Compute vertical background spacing in double precision
Andreas Klingf347d88af69b
diff --git a/Libraries/LibWeb/Rust/src/painting/record/paint/background.rs b/Libraries/LibWeb/Rust/src/painting/record/paint/background.rsindex 09456433df1..495a6dfc962 100644--- a/Libraries/LibWeb/Rust/src/painting/record/paint/background.rs+++ b/Libraries/LibWeb/Rust/src/painting/record/paint/background.rs@@ -678,7 +678,7 @@ fn paint_image_layer_in_current_space<O: Observer>(y_step = image_rect.height;repeat_y = false;} else {- let space = (background_positioning_area.height.to_float() % image_rect.height.to_float()) as f64;+ let space = background_positioning_area.height.to_double() % image_rect.height.to_double();y_step = image_rect.height + CssPixels::nearest_value_for(space / (whole_images - 1) as f64);repeat_y = true;repeat_y_has_gap = true;