summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-04-27 10:50:51 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2009-04-27 10:50:51 (GMT)
commit5a80e8041599648339d53976b47bba0966aeb718 (patch)
treec43749e5e9857812495549c6916da88f49854176
parenta1e34c439ac96f64510813ce5bc3181ae481be23 (diff)
downloadnetsurftest-5a80e8041599648339d53976b47bba0966aeb718.tar.gz
netsurftest-5a80e8041599648339d53976b47bba0966aeb718.tar.bz2
Regression test for r7335. (Box at point only returns boxes that physically contain the point.)
svn path=/trunk/netsurftest/; revision=7338
-rw-r--r--works/box-at-point-test.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/works/box-at-point-test.html b/works/box-at-point-test.html
new file mode 100644
index 0000000..c91f59d
--- a/dev/null
+++ b/works/box-at-point-test.html
@@ -0,0 +1,29 @@
+<html>
+<head>
+<style type="text/css">
+
+div {
+ position:relative; }
+
+div a {
+ display:block; }
+
+div a span {
+ position: absolute;
+ top:-5000px;
+ left:-5000px; }
+
+</style>
+</head>
+<body>
+
+<p>This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link. &ndash; This text should <strong>not</strong> be a clickable link.</p>
+
+<div>
+ <a href="moo">
+ <span>Hidden by position</span>
+ </a>
+</div>
+
+</body>
+</html>