Chromium Code Reviews| Index: LayoutTests/fast/borders/border-hittest-inlineFlowBox.html |
| diff --git a/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html b/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..059b7a83d33b3301307e996923d164a0a5b13106 |
| --- /dev/null |
| +++ b/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html |
| @@ -0,0 +1,35 @@ |
| +<!doctype html> |
| +<html> |
| +<head> |
| +<script src="../../resources/js-test.js"></script> |
| +<style> |
| +body { margin: 2em; } |
| + |
| +#test { |
| + background-color: green; |
| + border-radius: 50px; |
| + padding: 1em; |
| + line-height: 4em; |
| +} |
| + |
| +#test:hover { |
| + background-color:red; |
| +} |
| +</style> |
| +</head> |
| +<body> |
| +<span id="test"> |
| +Two line with <br/>a hard line break. |
|
davve
2015/03/26 10:03:36
lines
Abhijeet Kandalkar Slow
2015/03/27 11:28:59
Done.
|
| +</span> |
| +<br><br><br> |
| +<div id="console"></div> |
| +</body> |
| +<script> |
| +description('If this test passes, area outside border radius is body element.'); |
| +var rects = document.getElementById('test').getClientRects(); |
| +var elementInTopLeftCorner = document.elementFromPoint(rects[0].left, rects[0].top); |
| +shouldBe('elementInTopLeftCorner.nodeName', '"BODY"'); |
|
davve
2015/03/26 10:03:36
Instead of these two shouldBe you could use should
Abhijeet Kandalkar Slow
2015/03/27 11:28:59
Done.
|
| +elementInTopLeftCorner = document.elementFromPoint(rects[1].left, rects[1].top); |
| +shouldBe('elementInTopLeftCorner.nodeName', '"SPAN"'); |
| +</script> |
| +</html> |