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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/style/5017613-2.html

Issue 2179033004: Convert editing/style/5017613-*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 <p>This tests to make sure that plaintext-only regions aren't styled if they are n't fully selected. Only <b>foo</b> should be bold below.</p>
2 <div id="div" contenteditable="true"><div id="start">foo</div><table border="1" contenteditable="false"><tr><td>non-editable</td><td contenteditable="plaintext- only"><span id="end">plaintext</span>-only</td></tr></table></div>
3
4 <script>
5 var start = document.getElementById("start");
6 var end = document.getElementById("end");
7 var selection = window.getSelection();
8 selection.setBaseAndExtent(start, 0, end, end.childNodes.length);
9 document.execCommand("Bold");
10 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698