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

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

Issue 2601923003: [css-tables] Fix caret position inside empty cell (Closed)
Patch Set: Test rebaselines Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell.html
diff --git a/third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell.html b/third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell.html
new file mode 100644
index 0000000000000000000000000000000000000000..98c9d382067c1cde9e660ef321d7f9933cb1bb2b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell.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">
+<link rel="match" href="caret-in-empty-cell-expected.html">
+<style>
+ table {
+ font-size: 2em;
+ }
+ td {
+ 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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/caret/caret-in-empty-cell-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698