-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
Closed Rejected as Wontfix by Editor DiscretionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.mediaqueries-5
Description
It should be possible to style web contents differently when they are copied to the clipboard.
This would allow modifications like e.g. resizing or hiding images when copied, or removing some styling which should only be shown within the browser, or display some copyright information on copied text.
Example:
h2 {
text-transform: uppercase;
}
#copyrightInfo {
display: none;
}
@media clipboard {
h2 {
text-transform: none;
}
#copyrightInfo {
display: block;
}
}To be able to style different clipboard formats individually, clipboard may be changed to a function like clipboard(<mime-type>):
@media clipboard("text/plain") {
h2 {
text-transform: none;
}
}
@media clipboard("text/html") {
h2 {
text-transform: none;
}
}This idea rose in the issue about the copy/paste behavior with text-transform.
Sebastian
Metadata
Metadata
Assignees
Labels
Closed Rejected as Wontfix by Editor DiscretionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.mediaqueries-5