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

NEW
Unassigned

Status

()

Firefox
Developer Tools: CSS Rules Inspector
P3
normal
2 years ago
2 years ago

People

(Reporter: pbro, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [btpp-backlog])

(Reporter)

Description

2 years ago
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.
(Reporter)

Comment 1

2 years ago
Filter on CLIMBING SHOES
Priority: -- → P3
Whiteboard: [btpp-backlog]
You need to log in before you can comment on or make changes to this bug.