Open Bug 1776216 Opened 3 years ago Updated 3 years ago

user-select: all on contenteditable and input does not allow selection

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

People

(Reporter: tlouw, Unassigned)

Details

In Bug 1774697 contenteditable and input fields with text were changed to override the user-select used value to "text" (should be "contain" as per the spec, but gecko deals with "text" the same way, so it is used in stead).

It works for all values except for all which behaves the old way where it select the entire text at a time in stead of being able to select single characters.

There is code here that allows input fields to behave correctly, but the side effects of the change is unknown at this time, but should be a good place to start.

https://searchfox.org/mozilla-central/rev/6d0ba065e3d41822337c708c8c0aca334ddd9218/layout/generic/nsIFrame.cpp#5657

The failing tests are here:

testing/web-platform/tests/selection/user-select-on-input-and-contenteditable.html

Yeah, I suspect the loop you link should do something more similar to UsedUserSelect() (if not just use it) to handle that case.

Severity: -- → S3
Priority: -- → P3
Component: CSS Parsing and Computation → Layout
You need to log in before you can comment on or make changes to this bug.