diff --git a/crates/io/tests/it/svg.rs b/crates/io/tests/it/svg.rs
index fc398796cb..7402bf290d 100644
--- a/crates/io/tests/it/svg.rs
+++ b/crates/io/tests/it/svg.rs
@@ -448,7 +448,16 @@ fn retained_deep_svg_groups_lower_render_and_drop_on_a_bounded_worker() {
let (preview, _) = svg::import_svg_preview_with_work("retained.svg", source.as_bytes(), u64::MAX).unwrap();
assert_eq!(preview.document.max_group_depth(), 100);
assert!(pixel(&preview.document)[3] > 0.5);
- let (w, h, pixels) = svg::rasterize_rgba8(source.as_bytes()).unwrap();
+ // Whole-drawing rasterisation refuses more than 200 nested layers (#10953) with an
+ // error, not a crash; a drawing within that limit still renders on this small stack.
+ let refused = svg::rasterize_rgba8(source.as_bytes()).unwrap_err().to_string();
+ assert!(refused.contains("layers are nested too deeply"), "{refused}");
+ let within = format!(
+ "",
+ "".repeat(150),
+ "".repeat(150)
+ );
+ let (w, h, pixels) = svg::rasterize_rgba8(within.as_bytes()).unwrap();
assert_eq!((w, h), (8, 8));
assert!(pixels[3] > 127);
})