NEW 186224
Copying from inline flex behaves like block level elements.
https://bugs.webkit.org/show_bug.cgi?id=186224
Summary Copying from inline flex behaves like block level elements.
Samuel Williams
Reported 2018-06-01 21:41:55 PDT
When copying the text from ``` <div style="display: inline-flex; white-space: pre"> <span>This </span> <span>is </span> <span>flex </span> </div> ``` The data that would be pasted would contain multiple lines: ``` This is flex ``` And yet that is not similar to how it is presented in the browser: ``` This is flex ```
Attachments
Radar WebKit Bug Importer
Comment 1 2018-06-03 14:42:43 PDT
Samuel Williams
Comment 2 2018-06-03 20:44:29 PDT
I would like to add, this isn't just specific to inline-flex. It's possible that other flex box layouts do strange things when copying/pasting to plain text. Basically, copying/pasting from flex boxes generates unexpected output.
Ryosuke Niwa
Comment 3 2018-06-04 10:08:55 PDT
We don't have any code to handle flex box for copy & paste so anything is possible. We probably need to do some work to support both flex box & grid layouts in our copy & paste logic somehow.
Samuel Williams
Comment 4 2018-06-05 22:24:53 PDT
Samuel Williams
Comment 5 2019-04-07 05:46:31 PDT
I am just reporting that this is still an issue. You can see a live example here: https://www.codeotaku.com/journal/2018-06/improving-ruby-fibers/index Try copying only the code, it will invoke the copy handler which copies it as plain text. If you try to copy it including some of the preceding paragraph, it won't invoke the copy handler. If you paste the result into, say, TextEdit, you will get odd output.
Ryosuke Niwa
Comment 6 2019-04-11 21:24:35 PDT
Yes, this is an issue. We need to handle flexbox in our copy & paste code. We don't currently have the support for it.
Note You need to log in before you can comment on or make changes to this bug.