Bug 1508789 - Add tests for 'pointer-events: none' on the root element. r=mstange

Depends on D12500

Differential Revision: https://phabricator.services.mozilla.com/D12622

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ryan Hunt 2018-11-22 14:15:21 +00:00
Родитель 3bb5661553
Коммит bb77729abc
2 изменённых файлов: 40 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,20 @@
<!doctype html>
<meta charset=utf-8>
<title></title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<style type="text/css">
:root {
pointer-events: none;
}
</style>
<html>
<body>
</body>
</html>
<script>
test(() => {
let cs = window.getComputedStyle(document.documentElement).getPropertyValue("pointer-events");
assert_equals(cs, 'none');
});
</script>

Просмотреть файл

@ -0,0 +1,20 @@
<!doctype html>
<meta charset=utf-8>
<title></title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<style type="text/css">
:root {
pointer-events: none;
}
</style>
<html>
<body>
</body>
</html>
<script>
test(() => {
let element = document.elementFromPoint(50, 50);
assert_equals(element, document.documentElement);
});
</script>