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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-03.html

Issue 1960553002: Do not ignore the text style properties when checking styles in EditingStyle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use w3c test harness Created 4 years, 7 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/editing/EditingStyle.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 <div contenteditable="true">
5 <img src="../resources/abe.png">
6 </div>
7 <script>
8 test(function() {
9 document.getSelection().removeAllRanges();
10 var range = document.createRange();
11 range.selectNode(document.querySelector('img'));
12 document.getSelection().addRange(range);
13
14 assert_equals(document.queryCommandState('bold'), false);
15 assert_equals(document.queryCommandState('italic'), false);
16 assert_equals(document.queryCommandState('underline'), false);
17 assert_equals(document.queryCommandState('strikethrough'), false);
18 }, 'run queryCommandState() on the selected img element');
19 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698