[csswg-drafts] Copying text of elements that are visually adjacent (#8732)

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

== Copying text of elements that are visually adjacent ==
Take some markup like:

```html
<unknown>
  <unknown>one two</unknown>
  <unknown>three four</unknown>
</unknown>
```

These elements can appear adjacent via a number of layout systems, such as inline-block, table, floats, flex, grid.

Depends on container width, they could appear visually in a variety of ways:

```
one twothree four
---
onethree
twofour
---
one twothree
       four
```

What should be in the clipboard when the user copies this text? Does it depend on the layout system used? Does it depend on the elements used?

In [this example](https://output.jsbin.com/jovavaq/4/quiet) where I try to emulate VSCode's wrapping style, I'd like visually adjacent  elements to be copied as if they're adjacent.

However, I can see cases, such as a row of two paragraphs, where I'd want them to be copied in the same way as two block elements.

Should this be author controllable?

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


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

Received on Wednesday, 19 April 2023 10:52:01 UTC