[csswg-drafts] [css-pseudo-4] Add `user-select` to the list of applicable properties for styling highlights (#8880)

theseanl has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo-4] Add `user-select` to the list of applicable properties for styling highlights ==
* please tag the issue title with the spec's shortname, like `[css-foo]`
  (this is the name from the spec URL, without a level number unless the issue is specific to that level).
  If you're proposing a new feature that doesn't obviously fit in an existing spec, skip this part — don't make something up.

* please be specific (in the title and issue) about what you want to change:
  “make it better” means different things to different people!

* please link to the spec section you're talking about, or at least the spec



In the section https://drafts.csswg.org/css-pseudo-4/#highlight-styling, it lists a few CSS properties that are allowed to style highlights from css-highlight-api-1, such as `color`, `background-color`. Also, it briefly mentions why only certain properties are allowed:
> that do not affect layout and can be applied performantly in a highly dynamic environment

I suggest to add `user-select` to the list of applicable properties. A use-case would be to make a body of text not selectable, and make a only a dynamically highlighted text to be selectable. The `user-select` property does not affect layout, and would be a good match with the highlight API for developers who want fine-grained control over how texts are highlighted.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8880 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 27 May 2023 09:23:09 UTC