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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/font-size-delta-after-anchor-crash.html

Issue 2119083003: Make ApplyStyleCommand::applyRelativeFontStyleChange() to handle AfterAnchor position correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-05T10:59:18 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
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div contenteditable>
5 x<input><select style="display:block"><option id="anchor"></option></select>
6 </div>
7 <div id="log"></div>
8 <script>
9 test(() => {
10 // Since parser reject child nodes in INPUT, we make child node in INPUT her e
11 // to make |VisibleSelection::m_extent| have INPUT, AfterAnchor.
12 var input = document.querySelector('input');
13 input.appendChild(document.createElement('i'));
14
15 var selection = window.getSelection();
16 selection.collapse(document.querySelector('#anchor'), 0);
17 selection.extend(input, 1);
18 document.execCommand('FontSizeDelta', false, '1');
19 });
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698