Automatic update from web-platform-tests Added tests for ::backdrop UA styles (#60207) -- wpt-commits: 28db93d0c8f525cf146dda940887011453a9f896 wpt-pr: 60207
24 lines
835 B
HTML
24 lines
835 B
HTML
<!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">
|
|
<link rel="help" href="https://drafts.csswg.org/css-position-4/#backdrop">
|
|
<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>
|