зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3bb5661553
Коммит
bb77729abc
|
@ -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>
|
Загрузка…
Ссылка в новой задаче