diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-position/overlay/overlay-computed.html')
-rw-r--r-- | testing/web-platform/tests/css/css-position/overlay/overlay-computed.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/overlay/overlay-computed.html b/testing/web-platform/tests/css/css-position/overlay/overlay-computed.html new file mode 100644 index 0000000000..f1a0a315de --- /dev/null +++ b/testing/web-platform/tests/css/css-position/overlay/overlay-computed.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<title>CSS Positioned Layout Module Test: getComputedStyle().overlay</title> +<link rel="help" href="https://drafts.csswg.org/css-position-4/#overlay"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="/css/support/computed-testcommon.js"></script> +<div id="target"></div> +<script> + test_computed_value("overlay", "none", "none"); + // 'auto' also computes to 'none' due to this UA style while the element is + // not in the top layer: + // + // * { overlay: none !important } + test_computed_value("overlay", "auto", "none"); + test_computed_value("overlay", "inherit", "none"); + test_computed_value("overlay", "initial", "none"); + test_computed_value("overlay", "revert", "none"); + test_computed_value("overlay", "unset", "none"); +</script> |