diff --git a/tests/svg-active-content.test.mjs b/tests/svg-active-content.test.mjs
index 9ea34e58..f306257d 100644
--- a/tests/svg-active-content.test.mjs
+++ b/tests/svg-active-content.test.mjs
@@ -1209,6 +1209,19 @@ test('an unclosed image-set() is read to the end rather than skipped', () => {
]);
});
+test('an unterminated string inside image-set() does not hide earlier arguments', () => {
+ // The argument walk skips quoted strings as units; a string with no closing
+ // quote runs to the end of the fragment. The complete argument before it
+ // must still be collected and reported.
+ const svg =
+ '';
+ assert.deepEqual(findRemoteReferences(svg), [
+ 'references a remote resource in a ';
+ assert.deepEqual(findRemoteReferences(svg), [
+ 'references a remote resource in a