Chromium Code Reviews| 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..b24df3cc9cdebd52bf1bb1d97a3d204dbd7cbbd3 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
|
pdr.
2016/04/23 03:32:22
Is it possible to test these with reftests instead
Xianzhu
2016/04/25 23:18:15
Converted 2 of the 3 tests into reftests. Not usin
|
| +<style> |
| +.container { |
| + position: absolute; |
| + left: 20px; |
| + top: 50px; |
| +} |
| +.inner { |
| + position: absolute; |
| + left: 10px; |
| + top: 10px; |
| +} |
| +</style> |
| +<script> |
| +window.onload = function() { |
|
pdr.
2016/04/23 03:40:54
Nit: No need for onload here, you can just put the
Xianzhu
2016/04/25 23:18:15
Done but still use document.getElementById('area')
|
| + document.getElementById("area").focus(); |
| +} |
| +</script> |
| +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> |