EDIT: As @geca noted in the comments, this is a known WebKit bug. Let\'s hope it gets fixed soon!
The ::selection pseudo-element allows one to style th
Is a Demo: http://jsfiddle.net/ThinkingStiff/FcCgA/ HTML: <p> Highlights just fine in Chrome! CSS: Output (Chrome):contenteditable an option? Functions just list a for most things.
textarea, input, p, div {
width: 400px;
}
#div-textarea {
-webkit-appearance: textarea;
height: 32px;
overflow: auto;
resize: both;
}
::selection {
background-color: black;
color: white;
}
