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

Unified Diff: third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html

Issue 2601923003: [css-tables] Fix caret position inside empty cell (Closed)
Patch Set: Test rebaselines Created 3 years, 12 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: third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html
diff --git a/third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html b/third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2d669cdaffcf83b8c961d4751fec6aca24e6462
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Check caret position inside empty cell</title>
+<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
+<style>
+ table {
+ font-size: 2em;
+ }
+ td {
+ vertical-align: top;
+ padding: 5px;
+ }
+ #emptycell {
+ width: 50%;
+ }
+</style>
+
+<p>Test passes if the caret in the empty cell is inside the cell itself (that means it's vertically aligned with the reference text).</p>
+
+<table border="1" contenteditable>
+ <td>Reference text</td>
+ <td id="emptycell"></td>
+</table>
+
+<script>
+ var selection = window.getSelection();
+ var emptycell = document.getElementById("emptycell");
+ selection.collapse(emptycell, 0);
+</script>

Powered by Google App Engine
This is Rietveld 408576698