Skip to content

Commit

Permalink
chore: update WPT (#3598)
Browse files Browse the repository at this point in the history
Co-authored-by: Uzlopak <5059100+Uzlopak@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and Uzlopak authored Sep 13, 2024
1 parent 54e1fef commit 36d7160
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 36d7160

Please sign in to comment.