Commit 13cfdad8 authored by eric@webkit.org's avatar eric@webkit.org

Reviewed by Simon Fraser.

        Add a couple table hit tests
        https://bugs.webkit.org/show_bug.cgi?id=21892

        * svg/hittest/svg-inside-display-table-expected.txt: Added.
        * svg/hittest/svg-inside-display-table.xhtml: Added.
        * svg/hittest/svg-inside-table-expected.txt: Added.
        * svg/hittest/svg-inside-table.xhtml: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@42977 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 45f1eb1e
2009-04-28 Eric Seidel <eric@webkit.org>
Reviewed by Simon Fraser.
Add a couple table hit tests
https://bugs.webkit.org/show_bug.cgi?id=21892
* svg/hittest/svg-inside-display-table-expected.txt: Added.
* svg/hittest/svg-inside-display-table.xhtml: Added.
* svg/hittest/svg-inside-table-expected.txt: Added.
* svg/hittest/svg-inside-table.xhtml: Added.
2009-04-28 Adele Peterson <adele@apple.com>
Reviewed by Darin Adler.
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<style>
body {
margin: 0px;
padding: 0px;
border: 1px solid black;
display: table; /* Causes the bug */
}
#square {
fill: blue;
}
#square:hover {
fill: green;
}
</style>
</head>
<body>
<svg width='100px' height='100px' xmlns='http://www.w3.org/2000/svg'>
<svg>
<rect id='square' width='100' height='100' onclick='alert("You clicked the square! It worked!")'/>
</svg>
</svg>
</body>
<script><![CDATA[
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
var hitElement = document.elementFromPoint(50, 50);
var hitSuccess = hitElement && hitElement == document.getElementById("square");
document.body.innerHTML = hitSuccess ? "PASSED" : "FAIL, hit " + hitElement + " @ 50, 50";
]]></script>
</html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<style>
body {
margin: 0px;
padding: 0px;
border: 1px solid black;
}
#square {
fill: blue;
}
#square:hover {
fill: green;
}
</style>
</head>
<body>
<table><tr><td>
<svg width='100px' height='100px' xmlns='http://www.w3.org/2000/svg'>
<svg>
<rect id='square' width='100' height='100' onclick='alert("You clicked the square! It worked!")'/>
</svg>
</svg>
</td></tr></table>
<script><![CDATA[
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
var hitElement = document.elementFromPoint(50, 50);
var hitSuccess = hitElement && hitElement == document.getElementById("square");
document.body.innerHTML = hitSuccess ? "PASSED" : "FAIL, hit " + hitElement + " @ 50, 50";
]]></script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment