mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision c2b30ef30749b6a8f2cc832761dfe011e63d5e94
This commit is contained in:
parent
987e376ca7
commit
eda9b9b73a
142 changed files with 3513 additions and 851 deletions
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:horizontal-tb; direction:rtl;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(200, 15);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue