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

Side by Side 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, 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
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 <style>
6 table {
7 font-size: 2em;
8 }
9 td {
10 vertical-align: top;
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

Powered by Google App Engine
This is Rietveld 408576698