Closed Bug 1598686 Opened 5 years ago Closed 4 years ago

Copying and pasting CSS rules from Inspector is completely screwed up

Categories

(DevTools :: Inspector: Rules, defect)

70 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1597125

People

(Reporter: yoni, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Steps to reproduce:

Add CSS classes in browser to a DOM element.

Select classes in Inspector. [https://s.put.re/V1ZFLiF7.png]

Press Ctrl C OR right click "Copy Rule". [https://s.put.re/c6YrW1ZX.png]

Paste into a text editor

Actual results:

Very poor, broken formatting. [https://s.put.re/zCjf2gGF.png]

Expected results:

Formatted text according to browser. This is what it should look like; I've edited this myself: [https://s.put.re/BRchu6d8.png]

Attached image firefox-bug.png

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Inspector: Rules
Product: Firefox → DevTools

That's a harsh bug title. The color swatch introduces the unwanted newline before colors. The bug is already logged in Bug 1597125

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: