mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Test that getSVGDocument() returns null for a cross-origin document.</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<body>
|
||||
<embed src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect height="100" width="100"/></svg>'></embed>
|
||||
<script>
|
||||
const embed = document.querySelector('embed');
|
||||
var t = async_test('HTMLEmbedElement.getSVGDocument() for cross-origin document');
|
||||
window.addEventListener(
|
||||
'load', t.step_func_done(() => { assert_equals(embed.getSVGDocument(), null); }));
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue