-div[vimbhint='container']{
-    position:static
-}
 span[vimbhint^='label']{
     -webkit-transform:translate(-4px,-4px);
     background-color:#fff;
 }
 span[vimbhint='label focus']{
     opacity:1;
-    z-index:225000
 }
 
                 label.setAttribute(
                     "style", [
                         "display:none;",
-                        "left:", Math.max((rect.left + offsetX), offsetX), "px;",
-                        "top:", Math.max((rect.top + offsetY), offsetY), "px;"
+                        "left:", rect.left, "px;",
+                        "top:", rect.top, "px;"
                     ].join("")
                 );
 
             /* append the fragment to the document */
             var hDiv = doc.createElement("div");
             hDiv.setAttribute(attr, "container");
+            hDiv.setAttribute("style", "position:fixed;top:0;left:0;z-index:225000;");
             hDiv.appendChild(fragment);
             if (doc.body) {
                 doc.body.appendChild(hDiv);
 
     /* Inject the global styles with author level to allow restyling by user
      * style sheets. */
     style = webkit_user_style_sheet_new(CSS_HINTS,
-            WEBKIT_USER_CONTENT_INJECT_TOP_FRAME,
+            WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES,
             WEBKIT_USER_STYLE_LEVEL_AUTHOR, NULL, NULL);
     webkit_user_content_manager_add_style_sheet(ucm, style);
     webkit_user_style_sheet_unref(style);
 
         <a href="#one">one</a><br/>
         <a href="#two">two</a>
     </p>
+    <p>
+        To test the hints within iFrame
+        <code>allow-universal-access-from-file-urls</code> must be enabled.
+        And the page reloaded.
+        <iframe src="./wrapped.html" style="margin: 5px 50px; width: 400px; heigth: 200px;"></iframe>
+    </p>
 </body>
 </html>
 
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+    <title>Simple Links</title>
+</head>
+<body>
+    <a href="#one">one</a>
+    <br/>
+    <!-- link should not be visible without scrolling -->
+    <a href="#two" style="position: absolute; top: 200px;">two</a>
+</body>
+</html>
+