Re: [css-content] Request for note regarding selection, search, and accessibility of generated content

Hi Florian,

> On 23 Nov 2015, at 03:37, Florian Rivoal <florian@rivoal.net> wrote:
> 
> By default (as per the legacy behavior), generated content in pseudo elements is not searchable/copyable/selectable. However, using the user-select property on the pseudos could make them searchable/copyable/selectable.
> 
> - Florian

That doesn’t sound like a viable solution; it’s essentially the same as having to add box-sizing: border-box; to everything.

Are there cases where it is preferable the user cannot select text in generated content? And do those outnumber the cases where it’s preferable they can select it?

We don’t want to add to this list: https://wiki.csswg.org/ideas/mistakes

—Michiel

Received on Monday, 23 November 2015 12:34:19 UTC