From 19788edb2e97c961098dc08c6a293f1f1c2f5e01 Mon Sep 17 00:00:00 2001 From: Gregory Pappas Date: Sun, 21 Jul 2024 00:32:45 +0000 Subject: [PATCH] Support oncontentvisibilityautostatechange event handler Spec PR: https://github.com/whatwg/html/pull/10364 Differential Revision: https://phabricator.services.mozilla.com/D217187 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1898833 gecko-commit: d583d9d438eafe5bec7db0a922ef416dae1bdb79 gecko-reviewers: emilio, smaug --- .../content-visibility-auto-state-changed.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/css/css-contain/content-visibility/content-visibility-auto-state-changed.html b/css/css-contain/content-visibility/content-visibility-auto-state-changed.html index 0333c052e4a2ea..6a14470c0f4b1d 100644 --- a/css/css-contain/content-visibility/content-visibility-auto-state-changed.html +++ b/css/css-contain/content-visibility/content-visibility-auto-state-changed.html @@ -24,16 +24,22 @@
+
@@ -83,6 +89,12 @@ assert_true(contentattrfired, "contentattrfired"); }, "ContentVisibilityAutoStateChange content attribute test"); + +promise_test(async t => { + await waitForAtLeastOneFrame(); + assert_true(contentattrfiredonsvg, "contentattrfiredonsvg"); +}, "ContentVisibilityAutoStateChange content attribute test on svg"); + promise_test(t => new Promise(async (resolve, reject) => { await new Promise((waited, _) => { requestAnimationFrame(() => requestAnimationFrame(waited));