Open Bug 1472932 Opened 6 years ago Updated 2 years ago

Allow copying and pasting colors for <input type="color">

Categories

(Core :: Layout: Form Controls, enhancement)

enhancement

Tracking

()

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

When an <input type="color"> element is focused, it should be possible to copy the currently selected color value or paste a new one.

The implementation may allow to possible way to do that. Like for text inputs, the shortcuts Ctrl+C and Ctrl+V could be allowed. And there could be a context menu containing two entries 'Copy' and 'Paste' (or 'Copy value' and 'Paste value' if that's more clear) for those actions.

Example:
1. Go to data:text/html,<input type="color">
2. Focus the color field
3. Press Ctrl+C or right-click the color field and choose 'Copy'
   => The string '#000000' (without quotes) should be copied to the clipboard.
4. Copy '#0000ff' (without quotes) from a text editor
5. Focus the color field
6. Press Ctrl+V or right-click the color field and choose 'Paste'
   => The color field should get the value '#0000ff' applied.

Sebastian
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.