mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-testsAdd tests for `screenLeft` and `screenTop` Matches https://github.com/w3c/csswg-drafts/pull/2669. Note that `screenX` and `screenY` themselves aren't tested at all: https://github.com/web-platform-tests/wpt/issues/5471 -- Update screenLeftTop.html -- Merge pull request #13543 from web-platform-tests/foolip/screenLeftTop Add tests for `screenLeft` and `screenTop` -- wpt-commits: 384330eb99484763b94f4a986fa8cacabb579739, 9b13cb18deeccf3e1da44e227c343531deffa1fb, 9419b7f7d685502b8c900dbce2500dfdedb0edec wpt-pr: 13543
17 lines
655 B
HTML
17 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>
|