diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-grid/parsing/grid-template-node-not-connected.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-grid/parsing/grid-template-node-not-connected.html')
-rw-r--r-- | testing/web-platform/tests/css/css-grid/parsing/grid-template-node-not-connected.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-grid/parsing/grid-template-node-not-connected.html b/testing/web-platform/tests/css/css-grid/parsing/grid-template-node-not-connected.html new file mode 100644 index 0000000000..89bee03a11 --- /dev/null +++ b/testing/web-platform/tests/css/css-grid/parsing/grid-template-node-not-connected.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> +<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=261421"> +<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com"> +<meta name="assert" content="test should not crash and grid-template for child should be the empty string after disconnecting the element"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +</head> +<style> +#child { + grid-template: 10px / 10px; +} +</style> +<div> + <div id="child"></div> +</div> +<script> +test(() => { + let styleDeclaration = window.getComputedStyle(document.getElementById("child")); + document.querySelector("body > div:nth-child(1)").textContent = ""; + assert_equals(styleDeclaration.gridTemplate, ""); +}); +</script> +</html> |