mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Remove broken test_getClientRects.html
This broke in ab0d620
and in trying to fix it, it's become clear that I don't
understand the intended behavior of getClientRects(). In fact I only see one
rect in Firefox even when all three <div>s have drawn borders, which confuses
me. Let's remove the test for now and someone who understands what's going on
(which could be future me!) will re-add it.
This commit is contained in:
parent
d2b57ba7c1
commit
20613390f9
1 changed files with 0 additions and 40 deletions
|
@ -1,40 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
<script>
|
||||
var elems = document.getElementsByTagName('div');
|
||||
var rects = elems[0].getClientRects();
|
||||
is_a(rects, ClientRectList);
|
||||
|
||||
is(rects.length, 3);
|
||||
|
||||
for (var i=0; i<rects.length; i++) {
|
||||
var rect = rects[i];
|
||||
is_a(rect, ClientRect);
|
||||
|
||||
geq(rect.top, 100);
|
||||
geq(rect.bottom, 100);
|
||||
geq(rect.left, 100);
|
||||
geq(rect.right, 100);
|
||||
|
||||
is(rect.width, rect.right - rect.left);
|
||||
is(rect.height, rect.bottom - rect.top);
|
||||
}
|
||||
|
||||
finish();
|
||||
</script>
|
||||
<style>
|
||||
div {
|
||||
margin-top: 100px;
|
||||
margin-left: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
my div
|
||||
<div>foo</div>
|
||||
<div>bar</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue