From 859effd49b212ed231f22830f7a2d8ba70eeca0f Mon Sep 17 00:00:00 2001 From: Nicolas Chevobbe Date: Mon, 29 Jan 2024 10:29:28 +0000 Subject: [PATCH] Bug 1876220 - [devtools] Prevent selector highlighter to add new line to clipboard when copy/pasting. r=devtools-reviewers,jdescottes. Differential Revision: https://phabricator.services.mozilla.com/D199707 --- devtools/client/themes/rules.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devtools/client/themes/rules.css b/devtools/client/themes/rules.css index 37095cc90c90a..47095ee2219fd 100644 --- a/devtools/client/themes/rules.css +++ b/devtools/client/themes/rules.css @@ -898,6 +898,8 @@ cursor: pointer; -moz-context-properties: fill; fill: var(--theme-icon-dimmed-color); + /* Prevent line break when copy/pasting an entire rule */ + user-select: auto; } .ruleview-selectorhighlighter:hover {