mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
This commit is contained in:
parent
fcd6beb608
commit
cb63cfd5c7
185 changed files with 3083 additions and 1074 deletions
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE HTML>
|
||||
<meta charset=utf-8>
|
||||
<title>Element Timing: check intersectionRect for element in iframe</title>
|
||||
<body>
|
||||
<style>
|
||||
body {
|
||||
margin: 50px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
async_test((t) => {
|
||||
on_event(window, 'message', e => {
|
||||
assert_equals(e.data.length, 1);
|
||||
assert_equals(e.data.entryType, 'element');
|
||||
const rect = e.data.rect;
|
||||
// rect should start at (0,0) even though main frame has a margin.
|
||||
assert_equals(rect.left, 0);
|
||||
assert_equals(rect.right, 100);
|
||||
assert_equals(rect.top, 0);
|
||||
assert_equals(rect.bottom, 100);
|
||||
t.done();
|
||||
});
|
||||
}, 'Element Timing entry in iframe has coordinates relative to the iframe.');
|
||||
</script>
|
||||
<iframe src="resources/iframe-with-square-sends-entry.html"/>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue