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..c8b420c855bf8c3602e209d1b97bbf561c28f395 |
| --- /dev/null |
| +++ b/LayoutTests/fast/borders/border-hittest-inlineFlowBox.html |
| @@ -0,0 +1,55 @@ |
| +<!doctype html> |
| +<html> |
| +<head> |
| +<script src="../../resources/js-test.js"></script> |
| +<style> |
| +span { |
| + background-color: lightgray; |
| + border-radius: 2em; |
| + padding: 1em; |
| + line-height: 4em; |
| +} |
| + |
| +label { |
| + padding: 2em; |
| + background-color: lightgreen; |
| + border-radius: 2em; |
| +} |
| +</style> |
| +</head> |
| +<body> |
| +<span id="A"> |
| +Two lines with <br/>a hard line break. |
| +</span> |
| +<br/><br/><br/> |
|
leviw_travelin_and_unemployed
2015/03/30 20:45:57
Why not just put the tests inside of blocks instea
Abhijeet Kandalkar Slow
2015/03/31 06:20:04
Added <div> tag with margin to separate test and a
|
| +<span id="B">B<label href="#" id="C">C</label></span> |
| +<br/><br/><br/> |
|
leviw_travelin_and_unemployed
2015/03/30 20:45:57
Ditto.
Abhijeet Kandalkar Slow
2015/03/31 06:20:04
Added <div> tag with margin to separate test and a
|
| +<span id="D" style="padding: 2em;">D<label id="E" href="#" style="padding: 1em;">E</label></span> |
| +<div id="console"></div> |
| +</body> |
| +<script> |
| +description('If this test passes, area outside border radius is body element.'); |
| + |
| +var rects = document.getElementById('A').getClientRects(); |
| +var elementInTopLeftCorner = document.elementFromPoint(rects[0].left, rects[0].top); |
| +shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY'); |
| +elementInTopLeftCorner = document.elementFromPoint(rects[1].left, rects[1].top); |
| +shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'SPAN'); |
| + |
| +var rect = document.getElementById('B').getBoundingClientRect(); |
| +elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); |
| +shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY'); |
| + |
| +rect = document.getElementById('C').getBoundingClientRect(); |
| +elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); |
| +shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY'); |
| + |
| +rect = document.getElementById('D').getBoundingClientRect(); |
| +elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); |
| +shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY'); |
| + |
| +rect = document.getElementById('E').getBoundingClientRect(); |
| +elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); |
| +shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'SPAN'); |
| +</script> |
| +</html> |