Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: LayoutTests/fast/text/selection-rect-line-height-too-small.html

Issue 141683003: Return the right top position for text selections when there are no previous root inline boxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added [ NeedsRebaseline ] for editing/selection/move-left-right.html Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/text/selection-rect-line-height-too-small.html
diff --git a/LayoutTests/fast/text/selection-rect-line-height-too-small.html b/LayoutTests/fast/text/selection-rect-line-height-too-small.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2a213b0dcaa348b54ba29d2144f6fcd2cd69ae0
--- /dev/null
+++ b/LayoutTests/fast/text/selection-rect-line-height-too-small.html
@@ -0,0 +1,9 @@
+<style>
+ div::selection { background-color: green; }
+</style>
+<div id="target" style="font-size: 16px; height: 20px; line-height: 0px;">
+ The House
+</div>
+<script>
+ getSelection().setBaseAndExtent(target, 0, target, 1);
+</script>

Powered by Google App Engine
This is Rietveld 408576698