From 23eb593498364037fb7d95a5efc052ae1b07799f Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 11 Nov 2026 22:18:21 -0800 Subject: [PATCH] Render: the feather test checks the inner effects still draw inside The edge comparisons pass when a bevel or inner glow is not drawn at all. A pixel inside the bevel and glow bands now has to differ from the same object without the effect, for every feather kind. --- crates/render/src/fx.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/render/src/fx.rs b/crates/render/src/fx.rs index f9b40ba9b..8fd4b0d1d 100644 --- a/crates/render/src/fx.rs +++ b/crates/render/src/fx.rs @@ -736,6 +736,16 @@ mod tests { ); } } + // Inside the bevel and glow bands the effect still shows, faded with the object + // where the feather reaches. + let inside = px(&plain, threads, 110); + for inner in [1, 2] { + let with = px(&doc(image, feather, inner), threads, 110); + assert!( + diff(with, inside) > 0, + "image {image} feather {feather} inner {inner} threads {threads}: {with:?} at 110, {inside:?} without the effect" + ); + } } } }