Open Bug 1247537 Opened 8 years ago Updated 2 years ago

Copying CSS rules doesn't always produce the same result when properties are disabled

Categories

(DevTools :: Inspector: Rules, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: pbro, Unassigned)

Details

(Whiteboard: [btpp-backlog])

Start with these steps:

- open the inspector on any page
- find a rule in the Rules panel that has several properties
- disable one property (by unchecking the checkbox next to it)

Now, compare these 2 ways to copy the rule in the clipboard:

A)
  - copy the text with the mouse cursor
  - right-click and select "Copy"
  OR
  - hit ctrl-C
  - paste the copied text in a text editor somewhere

B)
  - just right-click somewhere in the rule area
  - select "Copy Rule"
  - paste the copied text in a text editor somewhere

==> In case A, the rule is pasted with all properties being enabled
==> In case B, the rule is pasted too but the property that had been disabled before appears within a comment block /*    */

We want case B to be what happens every time. This is a useful feature, and there shouldn't be a difference whether you copy the usual way, or you copy using the "Copy Rule" feature.
Filter on CLIMBING SHOES
Priority: -- → P3
Whiteboard: [btpp-backlog]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.