Index: third_party/WebKit/LayoutTests/fast/text/selection-with-inline-padding.html |
diff --git a/third_party/WebKit/LayoutTests/fast/text/selection-with-inline-padding.html b/third_party/WebKit/LayoutTests/fast/text/selection-with-inline-padding.html |
index 56c2a6c19b206dbcb3fd1d9576ce98a6b60b96fb..7992c4b1171f4820a1122d245c253aaefc6757e6 100644 |
--- a/third_party/WebKit/LayoutTests/fast/text/selection-with-inline-padding.html |
+++ b/third_party/WebKit/LayoutTests/fast/text/selection-with-inline-padding.html |
@@ -1,27 +1,25 @@ |
<!DOCTYPE html> |
-<html> |
- <head> |
- <title>Test paddings and selection for inline elements</title> |
- <style> |
- p > b, pre > b { padding: 10px; } |
- </style> |
- </head> |
- <body> |
- <p> |
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> |
- <b id="test">Sed dictum erat sit amet pharetra pretium.</b><br> |
- Nullam a est vitae orci tempus tincidunt nec at dolor. |
- </p> |
- <p> |
- Tests that selections do not include padding in the Y direction for |
- inline elements where it should be ignored. |
- </p> |
- <script> |
- var node = document.getElementById('test').firstChild; |
- var range = document.createRange(); |
- range.setStart(node, 5); |
- range.setEnd(node, node.length - 5); |
- window.getSelection().addRange(range); |
- </script> |
- </body> |
-</html> |
+<style> |
+p > b { |
+ padding: 10px; |
+} |
+</style> |
+<p> |
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br> |
+ <b id="test">Sed dictum erat sit amet pharetra pretium.</b><br> |
+ Nullam a est vitae orci tempus tincidunt nec at dolor. |
+</p> |
+<p> |
+ Tests whether selection includes padding in the Y direction for inline |
+ elements. This padding would ideally not be included. http://crbug.com/657325#c13 |
+</p> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ var node = document.getElementById('test').firstChild; |
+ var range = document.createRange(); |
+ range.setStart(node, 5); |
+ range.setEnd(node, node.length - 5); |
+ window.getSelection().addRange(range); |
+}, true); |
+</script> |