Skip to content

Commit

Permalink
Add tentative WPT for SVG <use> fetch destination.
Browse files Browse the repository at this point in the history
See whatwg/fetch#1012

Differential Revision: https://phabricator.services.mozilla.com/D221775

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1918039
gecko-commit: cc7efe348b0fb97218a720ed47f6a8873219796b
gecko-reviewers: emilio
  • Loading branch information
Tom Schuster authored and moz-wptsync-bot committed Sep 12, 2024
1 parent 151082e commit e147ba1
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@
await waitOnMessageFromSW(t);
}, 'Background image fetches with an "image" Request.destination');

// SVG use element - image destination
// See for discussion https://github.com/whatwg/fetch/issues/1012.
promise_test(async t => {
const doc = frame.contentWindow.document;

let svg = doc.createElementNS("http://www.w3.org/2000/svg", "svg");
let use = doc.createElementNS("http://www.w3.org/2000/svg", "use");
use.setAttribute("href", "dummy.svg?t=use&dest=image#ref");
svg.appendChild(use);
doc.body.appendChild(svg);

await waitOnMessageFromSW(t);
}, 'SVG use element fetches with an "image" Request.destination');

// Font destination
///////////////////

Expand Down

0 comments on commit e147ba1

Please sign in to comment.