NEW 239514
Implement `auto` value as a computed value for `user-select` and stop making it inherited
https://bugs.webkit.org/show_bug.cgi?id=239514
Summary Implement `auto` value as a computed value for `user-select` and stop making ...
Tim Nguyen (:ntim)
Reported 2022-04-19 12:08:00 PDT
user-select: auto should compute to `user-select: auto` not `text` `user-select` also isn't an inherited property, the `auto` should take care of the "inheritance".
Attachments
Patch (22.04 KB, patch)
2022-04-21 02:51 PDT, Tim Nguyen (:ntim)
no flags
Patch (22.03 KB, patch)
2022-04-21 02:53 PDT, Tim Nguyen (:ntim)
no flags
Patch (22.04 KB, patch)
2022-04-21 03:43 PDT, Tim Nguyen (:ntim)
no flags
Patch (22.83 KB, patch)
2022-04-21 06:43 PDT, Tim Nguyen (:ntim)
no flags
Patch (30.28 KB, patch)
2022-04-22 02:56 PDT, Tim Nguyen (:ntim)
no flags
Patch (30.32 KB, patch)
2022-04-22 03:38 PDT, Tim Nguyen (:ntim)
ews-feeder: commit-queue-
Tim Nguyen (:ntim)
Comment 1 2022-04-19 12:32:01 PDT
Here's how user-select: auto is defined: https://drafts.csswg.org/css-ui-4/#valdef-user-select-auto The used value of auto is determined as follows: * On the ::before and ::after pseudo-elements, the used value is none * If the element is an editable element, the used value is contain * Otherwise, if the used value of user-select on the parent of this element is all, the used value is all * Otherwise, if the used value of user-select on the parent of this element is none, the used value is none * Otherwise, the used value is text > Note: This unusual combination of a non-inherited property with an initial value of auto whose used value depends on the parent element makes it possible to create what is effectively selective inheritance. This was initially proposed by Microsoft in IE to introduce a behavior similar to inheritance except that the contain value does not inherit.
Tim Nguyen (:ntim)
Comment 2 2022-04-21 02:51:27 PDT
Tim Nguyen (:ntim)
Comment 3 2022-04-21 02:53:53 PDT
Tim Nguyen (:ntim)
Comment 4 2022-04-21 03:43:58 PDT
Tim Nguyen (:ntim)
Comment 5 2022-04-21 06:43:44 PDT
Tim Nguyen (:ntim)
Comment 6 2022-04-22 02:56:46 PDT
Tim Nguyen (:ntim)
Comment 7 2022-04-22 03:38:16 PDT
Radar WebKit Bug Importer
Comment 8 2022-04-26 12:08:13 PDT
Tim Nguyen (:ntim)
Comment 9 2024-11-12 19:00:20 PST
Note You need to log in before you can comment on or make changes to this bug.