Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 6 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-position/overlay/overlay-computed.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Positioned Layout Module Test: getComputedStyle().overlay</title>
<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>