Re: [w3c/clipboard-apis] Clipboard API for text/html serialization and associated style attributes. (Issue #246)

karlcow left a comment (w3c/clipboard-apis#246)

## Test 10

```
<style>span {position: absolute; top: 100px;}</style>
<body>
<div>This is a <span>simple</span> test. Select all and copy-paste to check the style.</div>
</body>
```

### Safari

```
📄 TEXT/HTML:
──────────────────────────────
Length: 1370 characters
Content:
<head><meta charset="UTF-8"></head><span style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; float: none; display: inline !important;">This is a<span class="Apple-converted-space"> </span></span><span style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid; position: absolute; top: 100px; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">simple</span><span style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; float: none; display: inline !important;">test. Select all and copy-paste to check the style.</span>

📄 TEXT/PLAIN:
──────────────────────────────
Length: 68 characters
Content:
This is a simple test. Select all and copy-paste to check the style.

```

### Firefox

```
📄 TEXT/HTML:
──────────────────────────────
Length: 603 characters
Content:
<head><meta charset="UTF-8"></head><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;">This is a<span class="Apple-converted-space"> </span><span>simple</span><span class="Apple-converted-space"> </span>test. Select all and copy-paste to check the style.</div>

📄 TEXT/PLAIN:
──────────────────────────────
Length: 70 characters
Content:

This is a simple test. Select all and copy-paste to check the style.


```

### Edge

```
📄 TEXT/HTML:
──────────────────────────────
Length: 1681 characters
Content:
<head><meta charset="UTF-8"></head><span style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: initial; text-decoration-style: initial; color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-variant-ligatures: normal; text-decoration-color: initial; float: none; display: inline !important;">This is a<span> </span></span><span style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: initial; text-decoration-style: initial; position: absolute; top: 100px; color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-variant-ligatures: normal; text-decoration-color: initial;">simple</span><span style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: initial; text-decoration-style: initial; color: rgb(0, 0, 0); font-family: Times; font-size: medium; font-variant-ligatures: normal; text-decoration-color: initial; float: none; display: inline !important;">test. Select all and copy-paste to check the style.</span>

📄 TEXT/PLAIN:
──────────────────────────────
Length: 67 characters
Content:
This is a simpletest. Select all and copy-paste to check the style.

```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/246#issuecomment-3588268694
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/246/3588268694@github.com>

Received on Friday, 28 November 2025 07:49:29 UTC