Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/hittesting/border-hittest-with-image-fallback.html |
| diff --git a/third_party/WebKit/LayoutTests/hittesting/border-hittest-with-image-fallback.html b/third_party/WebKit/LayoutTests/hittesting/border-hittest-with-image-fallback.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e70e66853a060800240c585a32c3668722546dd5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/hittesting/border-hittest-with-image-fallback.html |
| @@ -0,0 +1,24 @@ |
| +<!doctype html> |
|
pdr.
2016/03/31 04:20:11
In your last reply you said "The new test(border-h
Miyoung Shin(c)
2016/04/03 14:39:25
I'm really sorry but I missed to revert https://cr
|
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<style> |
| +img { |
| + background-color:red; |
| + border-radius: 50px; |
| +} |
| +</style> |
| +<body> |
| +<img id="roundedImg" src="none" width="100px" height="100px" /> |
| +<div id="log"></div> |
| +</body> |
| +<script> |
| +test(function(t) |
| +{ |
| + var element = document.getElementById("roundedImg"); |
| + var x = element.offsetLeft + element.offsetWidth - 2; |
| + var y = element.offsetTop + element.offsetHeight - 2; |
| + |
| + var element = document.elementFromPoint(x, y); |
| + assert_equals(element.nodeName, 'BODY'); |
| +}, "elementFromPoint should return an element under a point that is clipped to a border-radius"); |
| +</script> |