diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-093.html')
-rw-r--r-- | testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-093.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-093.html b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-093.html new file mode 100644 index 0000000000..a54fa407cb --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-093.html @@ -0,0 +1,24 @@ +<!doctype HTML> +<meta charset="utf8"> +<title>CSS Content Visibility: getComputedStyle works on a grid container with c-v: hidden and an absolutely positioned child</title> +<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com"> +<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> +<meta name="assert" content="getComputedStyle works on a grid container with c-v: hidden and an absolutely positioned child"> + +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> + +<style> +#container { content-visibility: hidden } +</style> + +<div id=container style="display: grid; width:200px"> +<div id=target style="width:50%;position: absolute"></div> +</div> + +<script> +test(() => { + const computedStyle = getComputedStyle(target); + assert_equals(computedStyle.width, "100px"); +}, "getComputedStyle works on a grid container with c-v: hidden and an absolutely positioned child"); +</script> |