summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/paint-timing/fcp-only/svg-in-iframe.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/paint-timing/fcp-only/svg-in-iframe.html')
-rw-r--r--testing/web-platform/tests/paint-timing/fcp-only/svg-in-iframe.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/paint-timing/fcp-only/svg-in-iframe.html b/testing/web-platform/tests/paint-timing/fcp-only/svg-in-iframe.html
new file mode 100644
index 0000000000..230c166cb0
--- /dev/null
+++ b/testing/web-platform/tests/paint-timing/fcp-only/svg-in-iframe.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<title>Performance Paint Timing Test: SVG in iframe does not trigger FCP</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../resources/utils.js"></script>
+<iframe src="../resources/svg.html"></iframe>
+<script>
+ promise_test(async (t) => {
+ await new Promise(resolve => {
+ window.addEventListener("message", resolve);
+ });
+ return assertNoFirstContentfulPaint(t);
+ }, "SVG in an iframe does not trigger FCP in the main frame");
+</script>