This property is just what I was looking for -- well, almost!

I did a simple text of values "auto", "none", "element" and I noticed that if you click on an image in all cases, the image doesn't highlight. (I want it to.)  If you start a drag, even just for a couple of pixels, the image highlights when "auto" and "element" is used.  (If you double-click on the image with "auto" then it highlights.)

How can I make an image highlight just by (single) clicking on it?




On Jul 5, 2006, at 1:26 PM, Timothy Hatcher wrote:

You are unable to select images like Mail because of a recent change in WebKit's user agent style-sheet. We now add "-khtml-user-select: element" to images and other elements to improve normal browsing and editing. This change was introduced in 10.4.6.

We also fixed khtml-user-select: none to have the following additional behavior (that matches Firefox's implementation of the property as well)
 (a) If you mouse down (or click, double click, triple click) inside a "none" region, the selection should not be cleared or changed
 (b) If you drag from within a "none" region out to a selectable region, no selection should be changed or started.

This change added a new value to khtml-user-select called "element" that is used for any object that should have the behavior of (a) and (b) above (but that is selectable aside from that).  This includes images, links, buttons, and so on. This fixed the big contenteditable issue and selection is no longer cleared now when you click on these controls (or on links). This behavior matches other browsers.

You will need to add a author style-sheet that overrides -khtml-user-select this like:

img {
    -khtml-user-select: auto;
}

For the other bugs you mention you should file individual bug reports at http://bugreport.apple.com

— Timothy Hatcher