Open Bug 895889 Opened 11 years ago Updated 2 years ago

Allow toggling of CSS shorthands and longhands in Rule View

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: miker, Unassigned)

Details

Firebug allows toggling of CSS shorthands and longhands (I prefer this inline a la Firebug) rather than using an expandable tree. A rule could have both "border: 0 solid #F00" and "border-bottom: 10px". If that is what is in my CSS then that is what I would want to see in the rule view instead of the mess that we currently show.
I assume the issue here is rather that in the case of having 'border' and 'border-*' defined, the serialization fails. See bug 713613.

Sebastian
Flags: needinfo?(mratcliffe)
(In reply to Sebastian Zartner [:sebo] from comment #1)
> I assume the issue here is rather that in the case of having 'border' and
> 'border-*' defined, the serialization fails. See bug 713613.
> 
> Sebastian

Yes, it is due to the way we parse CSS. Not much we can do without causing memory bloat.

At some point I will probably write a CSS parser using JS, which isn't hard.

I often wonder if this would be a better solution as we could include vendor prefixed and authored CSS.
Flags: needinfo?(mratcliffe)
Priority: -- → P3
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.