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

Side by Side 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 3 years, 11 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Check caret position inside empty cell</title>
4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5 <link rel="match" href="caret-in-empty-cell-expected.html">
6 <style>
7 table {
8 font-size: 2em;
9 }
10 td {
11 padding: 5px;
12 }
13 #emptycell {
14 width: 50%;
15 }
16 </style>
17
18 <p>Test passes if the caret in the empty cell is inside the cell itself (that me ans it's vertically aligned with the reference text).</p>
19
20 <table border="1" contenteditable>
21 <td>Reference text</td>
22 <td id="emptycell"></td>
23 </table>
24
25 <script>
26 var selection = window.getSelection();
27 var emptycell = document.getElementById("emptycell");
28 selection.collapse(emptycell, 0);
29 </script>
OLDNEW
« 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