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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/caret-in-empty-div-with-pseudo-content.html

Issue 2159373003: Cursor should respect text align in contenteditable with pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated ASSERT Created 4 years, 5 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/Source/core/layout/LayoutBlock.cpp » ('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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 #div1, #div2 {
6 height: 200px;
7 width: 200px;
8 border: 1px solid black;
9 }
10 #div2 {
11 text-align: center;
12 }
13 div:before {
14 content: "Test";
15 }
16 </style>
17 <div id="div1" contenteditable="true"></div>
18 <div id="div2" contenteditable="true"></div>
19 <script>
20 test (function() {
21 var div1 = document.getElementById('div1');
22 div1.focus();
23 var caretRect1 = internals.absoluteCaretBounds(document);
24
25 var div2 = document.getElementById('div2');
26 div2.focus();
27 var caretRect2 = internals.absoluteCaretBounds(document);
28
29 assert_not_equals(caretRect1.left, caretRect2.left);
30 }, "Tests if the cursor respects text align property in emtpy div having pseudo content");
31 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698