summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/document-policy/experimental-features/layout-animations-disabled-violation-report-keyframes-tentative.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/document-policy/experimental-features/layout-animations-disabled-violation-report-keyframes-tentative.html')
-rw-r--r--testing/web-platform/tests/document-policy/experimental-features/layout-animations-disabled-violation-report-keyframes-tentative.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/document-policy/experimental-features/layout-animations-disabled-violation-report-keyframes-tentative.html b/testing/web-platform/tests/document-policy/experimental-features/layout-animations-disabled-violation-report-keyframes-tentative.html
new file mode 100644
index 0000000000..cd9210cc13
--- /dev/null
+++ b/testing/web-platform/tests/document-policy/experimental-features/layout-animations-disabled-violation-report-keyframes-tentative.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/document-policy/experimental-features/resources/common.js"></script>
+<title> 'layout-animations' Policy : violation reports from CSS keyframes
+</title>
+<body>
+<script>
+ promise_test(async () => {
+ let promise = wait_for_violation_in_file(
+ "layout-animations", null /* source not specified */);
+ let style = document.createElement("style");
+ style.innerHTML = `@keyframes animation_property_top {
+ from { top: 0px }
+ to { top: 100px }
+ }`;
+ document.body.appendChild(style);
+ await promise;
+ },
+ "Verify that when 'layout-animations' is disabled, a keyframes which " +
+ "includes a blocked property generates violation report.");
+</script>
+</body>