Open
Bug 1207209
Opened 10 years ago
Updated 2 years ago
prettifying CSS does not handle comments properly
Categories
(DevTools :: Style Editor, defect, P3)
DevTools
Style Editor
Tracking
(Not tracked)
NEW
People
(Reporter: tromey, Unassigned)
References
(Blocks 1 open bug)
Details
I noticed a minor bug in CSS prettifying that is exposed by the
as-authored project (bug 984880).
Suppose you have a rule with two declarations, like:
body { color: red; color: #f0c; }
This will be prettified as
body {
color: red;
color: #f0c;
}
If you then disable the second property, the rule rewriter will
comment out the second declaration. The result will then be prettified
as:
body {
color: red; /*! color: #f0c; */
}
To the user this is a bit confusing as it seems that the style
editor deleted the newline.
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•