From bc17fb23697b4d2ea44a7c98de08ccebfae59bd6 Mon Sep 17 00:00:00 2001 From: Gregory Pappas Date: Sat, 20 Jul 2024 16:59:52 +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: e2635b8bf747fe8542ea4442db5aca85bd94eb1b 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 0333c052e4a2ea8..6a14470c0f4b1d6 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));