Index: LayoutTests/fast/text/selection-rect-line-height-too-big.html |
diff --git a/LayoutTests/fast/text/selection-rect-line-height-too-big.html b/LayoutTests/fast/text/selection-rect-line-height-too-big.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47b6d27473255e790437e2c6d39e0a147157dbc6 |
--- /dev/null |
+++ b/LayoutTests/fast/text/selection-rect-line-height-too-big.html |
@@ -0,0 +1,9 @@ |
+<style> |
+ div::selection { background-color: green; } |
+</style> |
+<div id="target" style="font-size: 16px; height: 20px; line-height: 48px;"> |
+ The House |
+</div> |
+<script> |
+ getSelection().setBaseAndExtent(target, 0, target, 1); |
+</script> |