1
0
Fork 0
firefox/testing/web-platform/tests/css/cssom-view/screenLeftTop.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
655 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-window-screenleft">
<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-window-screentop">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
assert_equals(typeof window.screenLeft, "number", "screenLeft type");
assert_equals(window.screenLeft, window.screenX, "alias of screenX");
}, "screenLeft");
test(() => {
assert_equals(typeof window.screenTop, "number", "screenTop type");
assert_equals(window.screenTop, window.screenY, "alias of screenY");
}, "screenTop");
</script>