The links on exherbo are set to margin: -10em and padding: 10em so they
have indeed a big bounding box which is returned by
e.getBoundlingClientRect().
width: 500px;
margin-left: -250px;
}
- a.negative {
- padding: 2em;
- margin: -2em;
- }
</style>
<title>Hint Label positioning with negative margins</title>
</head>
<p>
When using hints (f) on this page, the hint should be placed on
the upper left corner of the links.<br/>
- <a href="#one">one</a>
- </p>
- <p>
- Following link should not generate a big highlighted box on hinting.
- <a href="#two" class="negative">two</a> -
- see <a href="https://github.com/fanglingsu/vimb/issues/507">#507</a>.
+ <a href="#one">one</a><br/>
+ <a href="#two">two</a>
</p>
</body>
</html>