Bug 21545 - execCommand("Outdent") messes up the appearance of visual selection
Summary: execCommand("Outdent") messes up the appearance of visual selection
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-11 16:44 PDT by Eric Roman
Modified: 2017-07-18 08:30 PDT (History)
0 users

See Also:


Attachments
Selection does not show up (724 bytes, text/html)
2008-10-11 16:49 PDT, Eric Roman
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Roman 2008-10-11 16:44:04 PDT
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.
Comment 1 Eric Roman 2008-10-11 16:49:39 PDT
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.