Bug 12843

Summary: Incorrect behaviour for select and input elements with "-webkit-user-select" property
Product: WebKit Reporter: Tom Brown <tom>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap, rniwa
Priority: P2 Keywords: HasReduction
Version: 420+   
Hardware: All   
OS: OS X 10.4   
Attachments:
Description Flags
Bug demonstration none

Description Tom Brown 2007-02-21 11:07:02 PST
Certain settings of the "-webkit-user-select" property cause "input" and "select" elements to behave inconsistently, specifically when a local setting is overriding a more strict global setting. The "text" and "none" values override correctly and consistently, but the "ignore" and "auto" behave differently.

I believe the correct behavior would be consistency. If content within the input textbox can be selected, items within the select box should be selectable as well. A local setting of "auto" should allow each element to be selected based on it's element type, rather than on any parent setting.

webkit-user-select:none
  input: not selectable
  select: not selectable

webkit-user-select:ignore
  input: selectable
  select: not selectable

webkit-user-select:text
  input: selectable
  select: selectable

webkit-user-select:auto
  input: selectable
  select: not selectable
Comment 1 Tom Brown 2007-02-21 11:08:08 PST
Created attachment 13301 [details]
Bug demonstration
Comment 2 Ryosuke Niwa 2011-05-03 07:35:33 PDT
As far as I can tell by selecting all on the demo, the behavior is consistent now.