Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why is text formatting of custom HTML elements not copied to the clipboard?

  • No replies
  • 1 has this problem
  • 7 views
more options

I have noticed that the formatting of text (font-weight, color, background-color etc) persists when copied to the clipboard only if the corresponding CSS rules are applied to standard HTML elements, whereas CSS rules applied to elements with custom tags (i.e. <custom style="color:red">copied text</custom>) won't persist when copied to the clipboard. Why is that? Can I do something about it?

I have noticed that the formatting of text (font-weight, color, background-color etc) persists when copied to the clipboard only if the corresponding CSS rules are applied to standard HTML elements, whereas CSS rules applied to elements with custom tags (i.e. <custom style="color:red">copied text</custom>) won't persist when copied to the clipboard. Why is that? Can I do something about it?