Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!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
| |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <style> | |
| 5 img { | |
| 6 background-color:red; | |
| 7 border-radius: 50px; | |
| 8 } | |
| 9 </style> | |
| 10 <body> | |
| 11 <img id="roundedImg" src="none" width="100px" height="100px" /> | |
| 12 <div id="log"></div> | |
| 13 </body> | |
| 14 <script> | |
| 15 test(function(t) | |
| 16 { | |
| 17 var element = document.getElementById("roundedImg"); | |
| 18 var x = element.offsetLeft + element.offsetWidth - 2; | |
| 19 var y = element.offsetTop + element.offsetHeight - 2; | |
| 20 | |
| 21 var element = document.elementFromPoint(x, y); | |
| 22 assert_equals(element.nodeName, 'BODY'); | |
| 23 }, "elementFromPoint should return an element under a point that is clipped to a border-radius"); | |
| 24 </script> | |
| OLD | NEW |