When the selection contains a list (ul or ol), strange things happen. There is an existing layout test for this: LayoutTests/editing/execCommand/outdent-selection.html However I am not sure that the pixel baseline for it is quite right: http://trac.webkit.org/browser/trunk/LayoutTests/editing/execCommand/outdent-selection-expected.png?rev=25943 Notice how the element that was inside of a list ("Dinner time?") gets colored differently. In the older baseline for this test (r17143) this was not the case, is that a regression? I will upload another test case, where instead of coloring the selected text differently, no selection appears at all. Tested with WebKit@r37458 WinXp.
Created attachment 24293 [details] Selection does not show up In this test, a selection including a list is outdented. In Safari 3.1 it seems to work (the result shows a blue selection around everything). However in TOT webkit (I am running r37458 winxp) the middle part of the selection is missing. With some modifications you can get the text to disappear all-together.