Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-position/backdrop-ua-style.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Positioned Layout Test: ::backdrop UA styles"</title>
<link rel="author" title="Eyvind Lillesveen" href="mailto:eyvind.lillesveen@gmail.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<div id="elm"></div>
<script>
test(() => {
const backdrop_style = getComputedStyle(elm, "::backdrop");
assert_equals(backdrop_style.position, "fixed");
assert_equals(backdrop_style.top, "0px");
assert_equals(backdrop_style.right, "0px");
assert_equals(backdrop_style.left, "0px");
assert_equals(backdrop_style.bottom, "0px");
}, "UA styles for ::backdrop");
</script>
</body>
</html>