diff options
author | Daniel Carl <danielcarl@gmx.de> | 2018-08-03 23:58:20 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2018-08-04 00:03:16 +0200 |
commit | c5bf3b7ea15aa0d856c7732fa38cdcdda5e21c56 (patch) | |
tree | cf2fb40e62179bb65a05458b69d7c930c627caf7 /tests | |
parent | 5e57c590968e886b83605b347aad412818aa4fc2 (diff) |
Fix wrong hint label position on xkcd.com.
On some pages which set the body to fixed position the hint labels where
placed far away from the hinted element. This patch fixes this issue by
setting the position of the label to fixed instead of absolute.
This fixes #506.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.gitignore | 4 | ||||
-rw-r--r-- | tests/manual/hints-absolute-positioned-body.html | 22 |
2 files changed, 23 insertions, 3 deletions
diff --git a/tests/.gitignore b/tests/.gitignore index f83e6dd..c802245 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,3 +1 @@ -* -!*.c -!Makefile +/test-* diff --git a/tests/manual/hints-absolute-positioned-body.html b/tests/manual/hints-absolute-positioned-body.html new file mode 100644 index 0000000..2aa370a --- /dev/null +++ b/tests/manual/hints-absolute-positioned-body.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> + <style type="text/css"> + body { + position: absolute; + left: 50%; + width: 500px; + margin-left: -250px; + } + </style> + <title>Hint Label on pages with absolute positioned body</title> +</head> +<body> + <p> + When using hints (f) on this page, the hint should be placed on + the upper left corner of the links. + <a href="#one">one</a><br/> + <a href="#two">two</a> + </p> +</body> +</html> |