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

Side by Side Diff: LayoutTests/fast/css/first-letter-range-insert.html

Issue 671963002: Add first-letter range layout test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 <style>
3 div:first-child {
4 -webkit-column-count:65540;
5 }
6 div:first-letter {
7 color: green;
8 }
9 </style>
10 <script>
11 document.addEventListener("readystatechange", function() {
12 document.execCommand("SelectAll")
13 window.getSelection().deleteFromDocument();
14 });
15
16 document.addEventListener("DOMCharacterDataModified", modifiedListener);
17 function modifiedListener(evt) {
18 document.removeEventListener("DOMCharacterDataModified", modifiedListener);
19 window.getSelection().getRangeAt(0).insertNode(document.getElementById('dfn')) ;
20 }
21 </script>
22 <body>
23 <!-- Passes if no CRASH in debug. -->
Xianzhu 2014/10/22 17:57:33 Nit: Please change the above comment into a displa
dsinclair 2014/10/22 20:04:31 I can't. The text in the document seems to affect
24
25 <dfn id='dfn'></dfn>
26
27 <span>
28 <div id='node'>
29 c B
30 </div>
31 </span>
32 </body>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698