[Webkit-unassigned] [Bug 239514] Implement `auto` value as a computed value for `user-select` and stop making it inherited

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 19 12:32:01 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239514

--- Comment #1 from Tim Nguyen (:ntim) <ntim at apple.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220419/30d9ce5a/attachment.htm>


More information about the webkit-unassigned mailing list