1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <script src=
"../../editing/editing.js"></script>
6 <script src=
"resources/text-based-repaint.js"></script>
10 var elem
= document
.getElementById("test");
11 var selection
= window
.getSelection();
12 selection
.collapse(elem
, 1);
13 for (i
= 0; i
< 9; i
++)
14 document
.execCommand("Delete");
18 <body onload=
"runRepaintTest();">
19 <p><b>BUG ID:
</b> <a href=
"https://bugs.webkit.org/show_bug.cgi?id=8337">Bugzilla bug
8337</a> Incomplete repaint of inlines
’ outline during editing
</p>
21 <p id=
"success" style=
"background-color:palegreen; padding:3px;"><b>TEST PASS:
</b>
22 The words
“sit amet
” will be deleted, and the blue outline will shrink to
23 surround only the remaining text, without leaving behind any trails or other artifacts.
26 <p id=
"failure" style=
"background-color:#FF3300; padding:3px;"><b>TEST FAIL:
</b>
27 As the words
“sit amet
” will be deleted, the blue outline will leave
28 trails behind as it shrinks to fit the remaining text.
31 <div contenteditable
style=
"width: 100px; outline: none;">
32 <span id=
"test" style=
"outline: blue solid;">Lorem ipsum dolor sit amet
</span>