- From: bion howard via GitHub <sysbot+gh@w3.org>
- Date: Wed, 31 May 2023 21:21:55 +0000
- To: public-css-archive@w3.org
bionicles has just created a new issue for https://github.com/w3c/csswg-drafts:
== Allow user-select on ::marker pseudoelements ==
* 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.
- Sorry, I'm unfamiliar with how to answer this.
* please be specific (in the title and issue) about what you want to change:
“make it better” means different things to different people!
As described in my stack overflow post at https://stackoverflow.com/questions/76280867/enable-user-select-on-ol-li-marker-to-avoid-losing-numbers-from-numbered-lis
```
I face a problem with copying numbered lists (<ol>) from a chat application. When I copy the text, it doesn't include ::marker numbers. This makes the list items lose context, as numbers represent the order of content.
I know CSS ::marker pseudo-element isn't selectable by default, but I seek a workaround. The chat application often generates ordered lists, and users need to copy entire text, numbers included. It's not my app so I need to override CSS using the Stylus Chrome extension, I can't change their HTML or JS.
Does anyone know a way to select ::marker content, or keep ol li list numbers during text copy?
Here's a basic example:
<ol>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
</ol>
Here's my 1st attempted CSS:
::marker {
user-select: all;
}
This CSS still leaves out ::marker numbers when I copy a numbered list, so the issue persists across modern browsers.
Thank you for taking the time to read this and thank you in advance for any help!
Bion
```
* please link to the spec section you're talking about, or at least the spec
I'm unfamiliar with the structure of the spec, but it pertains to the `::marker` pseudoelement. I guess that means this:
https://drafts.csswg.org/css-pseudo-4/
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8892 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 31 May 2023 21:21:58 UTC