summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-size-removed.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/contain-size-removed.html')
-rw-r--r--testing/web-platform/tests/css/css-contain/contain-size-removed.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/contain-size-removed.html b/testing/web-platform/tests/css/css-contain/contain-size-removed.html
new file mode 100644
index 0000000000..9db8f44d63
--- /dev/null
+++ b/testing/web-platform/tests/css/css-contain/contain-size-removed.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<meta charset="utf-8">
+<title>CSS Containment Test: Remove size from style.contain</title>
+<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
+<meta name="assert" content="After removing size from style.contain, the element should trigger layout">
+<link rel="match" href="reference/pass_if_pass_below_clipped.html">
+<style>
+
+</style>
+<p>Test passes if there is the word "PASS" below.</p>
+<div id="container" style="contain: size; overflow: hidden;"><span>PASS</span></div>
+
+<script>
+window.requestAnimationFrame(() => {
+ document.getElementById("container").style.contain = "";
+});
+</script>