Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html

Issue 1912863002: Fix image map focus ring painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html b/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html
new file mode 100644
index 0000000000000000000000000000000000000000..62fcdfe954f458136f681934ca73a08bda08c746
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<style>
+.container {
+ position: absolute;
+ left: 20px;
+ top: 50px;
+}
+.inner {
+ position: absolute;
+ left: 10px;
+ top: 10px;
+}
+</style>
+Tests that we paint area outline properly when the image is inside positioned containers.
+<div class=container>
+ <div class=inner>
+ <img src="./resources/green.jpg" width=50 height=50 usemap="#map"/>
+ <map name="map"><area id=area shape="rectangle" coords="5, 5, 25, 25" href="#"></map>
+ </div>
+</div>
+<script>
+area.focus();
+</script>

Powered by Google App Engine
This is Rietveld 408576698